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

filter the highlighted lines through {command} #3069

Closed
kfir-drivenets opened this issue Sep 22, 2018 · 0 comments · Fixed by #4989
Closed

filter the highlighted lines through {command} #3069

kfir-drivenets opened this issue Sep 22, 2018 · 0 comments · Fixed by #4989

Comments

@kfir-drivenets
Copy link

Taken from https://github.com/VSCodeVim/Vim/blob/master/ROADMAP.md

I use the :%! etc a lot. For instance I use sort -u on my import statements in python, or I use a bash script to generate commands etc. Adding this feature would be very nice 👍

Thanks in advance,
Kfir.

J-Fields pushed a commit that referenced this issue Jul 6, 2020
This PR ports the :!{cmd} bang command from Vim, allowing external shell commands to be run directly from Vim's command mode.

Key features:
- :!{cmd} executes the shell command
- :{range}!{cmd} executes the shell command, pipes the line range to stdin, and replaces the line range with the output from stdout and stderr
- Embedded bangs are replaced with the previous bang command (e.g. :!dir => :!echo ! will execute echo dir)
- Cross-platform, supports Unix and Windows shells

Fixes #3154, fixes #3136, fixes #3069, fixes #4920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants