Skip to content

extended docs to show conditional shortcut execution #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

extended docs to show conditional shortcut execution #55

wants to merge 1 commit into from

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