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

Predefined Variable Support #7

Open
blueray453 opened this issue Apr 11, 2020 · 0 comments
Open

Predefined Variable Support #7

blueray453 opened this issue Apr 11, 2020 · 0 comments

Comments

@blueray453
Copy link

Please add support for predefined variables like ${file}, ${workspaceFolder}, ${selectedText} etc. mentioned in https://code.visualstudio.com/docs/editor/variables-reference#_predefined-variables so that we can use commands like:

sd before after ${file}
sd before after ${selectedText}
sed -i 's/old-text/new-text/g' ${file}
sed -i 's/old-text/new-text/g' ${selectedText}
${selectedText} | tr "a-z" "A-Z"
cat ${file} | tr "a-z" "A-Z"

These command examples are just to give a rough idea.

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