|
@@ -120,21 +120,6 @@ namespace CommandIDs {
|
|
|
export const search = 'filebrowser:search';
|
|
|
}
|
|
|
|
|
|
-namespace Selectors {
|
|
|
- // matches the text in the filebrowser; relies on an implementation detail
|
|
|
- // being the text of the listing element being substituted with input
|
|
|
- // area to deactivate shortcuts when the file name is being edited.
|
|
|
- export const selectorBrowser =
|
|
|
- '.jp-DirListing-content .jp-DirListing-itemText';
|
|
|
- // matches anywhere on filebrowser
|
|
|
- export const selectorContent = '.jp-DirListing-content';
|
|
|
- // matches all filebrowser items
|
|
|
- export const selectorItem = '.jp-DirListing-item[data-isdir]';
|
|
|
- // matches only non-directory items
|
|
|
- export const selectorNotDir = '.jp-DirListing-item[data-isdir="false"]';
|
|
|
- export const selectorHeader = '.jp-DirListing-header';
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* The file browser namespace token.
|
|
|
*/
|
|
@@ -1047,37 +1032,6 @@ function addCommands(
|
|
|
category: trans.__('File Operations')
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
- app.commands.addKeyBinding({
|
|
|
- command: CommandIDs.del,
|
|
|
- selector: Selectors.selectorBrowser,
|
|
|
- keys: ['Delete']
|
|
|
- });
|
|
|
- app.commands.addKeyBinding({
|
|
|
- command: CommandIDs.cut,
|
|
|
- selector: Selectors.selectorBrowser,
|
|
|
- keys: ['Ctrl X']
|
|
|
- });
|
|
|
- app.commands.addKeyBinding({
|
|
|
- command: CommandIDs.copy,
|
|
|
- selector: Selectors.selectorBrowser,
|
|
|
- keys: ['Ctrl C']
|
|
|
- });
|
|
|
- app.commands.addKeyBinding({
|
|
|
- command: CommandIDs.paste,
|
|
|
- selector: Selectors.selectorBrowser,
|
|
|
- keys: ['Ctrl V']
|
|
|
- });
|
|
|
- app.commands.addKeyBinding({
|
|
|
- command: CommandIDs.rename,
|
|
|
- selector: Selectors.selectorBrowser,
|
|
|
- keys: ['F2']
|
|
|
- });
|
|
|
- app.commands.addKeyBinding({
|
|
|
- command: CommandIDs.duplicate,
|
|
|
- selector: Selectors.selectorBrowser,
|
|
|
- keys: ['Ctrl D']
|
|
|
- });
|
|
|
}
|
|
|
|
|
|
/**
|