Skip to content

Commit

Permalink
feat(menus): add file releated commands to tab and editor context
Browse files Browse the repository at this point in the history
  • Loading branch information
sleistner committed Oct 25, 2020
1 parent 6c802a1 commit a8b748e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 31 deletions.
27 changes: 0 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,33 +86,6 @@ Non-existent folders are created automatically.
]
```

## Context Menu

```json
{
"explorer/context": [
{
"command": "fileutils.moveFile",
"group": "edit"
},
{
"command": "fileutils.duplicateFile",
"group": "edit"
}
],
"editor/context": [
{
"command": "fileutils.moveFile",
"group": "edit"
},
{
"command": "fileutils.duplicateFile",
"group": "edit"
}
]
}
```

## Configuration

```json
Expand Down
32 changes: 28 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,47 @@
}
],
"editor/context": [
{
"command": "fileutils.copyFileName",
"group": "1_copypath"
},
{
"command": "fileutils.renameFile",
"group": "1_modification@1"
},
{
"command": "fileutils.moveFile",
"group": "1_modification"
"group": "1_modification@2"
},
{
"command": "fileutils.duplicateFile",
"group": "1_modification"
"group": "1_modification@3"
},
{
"command": "fileutils.renameFile",
"group": "1_modification"
"command": "fileutils.removeFile",
"group": "1_modification@4"
}
],
"editor/title/context": [
{
"command": "fileutils.copyFileName",
"group": "1_copypath"
},
{
"command": "fileutils.renameFile",
"group": "1_modification@1"
},
{
"command": "fileutils.moveFile",
"group": "1_modification@2"
},
{
"command": "fileutils.duplicateFile",
"group": "1_modification@3"
},
{
"command": "fileutils.removeFile",
"group": "1_modification@4"
}
]
},
Expand Down

0 comments on commit a8b748e

Please sign in to comment.