Skip to content

Conversation

@janpaepke
Copy link

@janpaepke janpaepke commented May 13, 2021

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.

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.
@janpaepke
Copy link
Author

*bump

@ghost
Copy link

ghost commented Nov 4, 2023

Here's mine.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant