mrmlnc / vscode-duplicate

:electric_plug: Ability to duplicate files in VS Code.
https://goo.gl/LSnrBW
MIT License
53 stars 16 forks source link

extended docs to show conditional shortcut execution #55

Open janpaepke opened 3 years ago

janpaepke commented 3 years ago

I had other extensions using the same shortcut I wanted to use for duplication, so I had to find out how to make it conditional so that it would only run, when I focus the file in the explorer.

Thought this might be helpful information for other users as well.

What is the purpose of this pull request?

Improve readme.

What changes did you make? (Give an overview)

Added some json to readme.

janpaepke commented 2 years ago

*bump

ghost commented 1 year ago

Here's mine.

    {
        "key": "ctrl+d",
        "command": "duplicate.execute",
        "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
    },