Skip to content
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

Add selector $select_file #1995

Open
verside2 opened this issue Jan 3, 2025 · 0 comments
Open

Add selector $select_file #1995

verside2 opened this issue Jan 3, 2025 · 0 comments

Comments

@verside2
Copy link

verside2 commented Jan 3, 2025

Problem description

I need to create command for certain file in command pallete:

{
  "caption": "Rm: unwatch file",
  "command": "git",
  "args": {"argv": ["rm", "--cached", "last.txt"]}
}

As an alternative, I can use $text for file name.

Preferred solution

It would be more convenient to be able to use selector $select_file, which would work the same way as the selection in the file_history command.

{
  "caption": "Rm: unwatch file",
  "command": "git",
  "args": {"argv": ["rm", "--cached", "$select_file"]}
}
@verside2 verside2 changed the title Add selector $select_file Add selector $select_file Jan 5, 2025
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

No branches or pull requests

1 participant