vscode-duplicate icon indicating copy to clipboard operation
vscode-duplicate copied to clipboard

extended docs to show conditional shortcut execution

Open janpaepke opened this issue 4 years ago • 2 comments

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 avatar May 13 '21 11:05 janpaepke

*bump

janpaepke avatar Apr 11 '22 17:04 janpaepke

Here's mine.

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

ghost avatar Nov 04 '23 18:11 ghost