Added files list search; keybinding cleanup
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export const Keybindings: Array<{}> = [
|
||||
{
|
||||
name: "quit",
|
||||
bindKey: {win: "Ctrl-q", mac: "Ctrl-q"},
|
||||
bindKey: {win: "ctrl-q", mac: "ctrl-q"},
|
||||
readOnly: false
|
||||
}, {
|
||||
name: "toggleFullScreen",
|
||||
@@ -9,7 +9,7 @@ export const Keybindings: Array<{}> = [
|
||||
readOnly: false
|
||||
}, {
|
||||
name: "showSettingsMenu",
|
||||
bindKey: {win: "Ctrl-Shift-m", mac: "Ctrl-Shift-m"},
|
||||
bindKey: {win: "ctrl-shift-m", mac: "ctrl-shift-m"},
|
||||
readOnly: false
|
||||
}, {
|
||||
name: "showKeyboardShortcuts",
|
||||
@@ -17,13 +17,17 @@ export const Keybindings: Array<{}> = [
|
||||
readOnly: false
|
||||
}, {
|
||||
name: "openCommandPalette2",
|
||||
bindKey: {linux: "Command-shift-/|F1", win: "ctrl-shift-/|F1"},
|
||||
bindKey: {linux: "command-shift-/|F1", win: "ctrl-shift-/|F1"},
|
||||
readOnly: false
|
||||
}, {
|
||||
name: "showFilesModal",
|
||||
bindKey: {win: "ctrl-b", mac: "ctrl-b"},
|
||||
bindKey: {win: "ctrl-shift-b", mac: "ctrl-shift-b"},
|
||||
service: "filesModalService",
|
||||
readOnly: false
|
||||
}, {
|
||||
name: "showFilesList",
|
||||
bindKey: {win: "ctrl-b", mac: "ctrl-b"},
|
||||
readOnly: false
|
||||
}, {
|
||||
name: "showLSPModal",
|
||||
bindKey: {win: "ctrl-shift-l", mac: "ctrl-shift-l"},
|
||||
|
@@ -31,6 +31,14 @@ export class FilesService {
|
||||
return this.files.get(path);
|
||||
}
|
||||
|
||||
public getAllPaths(): string[] {
|
||||
return [...this.files.keys()];
|
||||
}
|
||||
|
||||
public getAllFiles(): NewtonFile[] {
|
||||
return [...this.files.values()];
|
||||
}
|
||||
|
||||
public delete(file: NewtonFile) {
|
||||
file.session.destroy();
|
||||
window.fs.closeFile(file.path);
|
||||
|
Reference in New Issue
Block a user