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

External command support #75

Closed
QiBaobin opened this issue Jun 3, 2021 · 2 comments · Fixed by #547
Closed

External command support #75

QiBaobin opened this issue Jun 3, 2021 · 2 comments · Fixed by #547
Labels
C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much

Comments

@QiBaobin
Copy link
Contributor

QiBaobin commented Jun 3, 2021

Will there be any external command support? I think that would provide a way to do what internal command missing on early stage, like grep, git etc.

@itzmjauz
Copy link
Contributor

itzmjauz commented Jun 3, 2021

I've always liked the vim way of ;
:!{command}

@archseer archseer changed the title External commnad support External command support Jun 4, 2021
@archseer archseer added C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much labels Jun 4, 2021
@archseer
Copy link
Member

archseer commented Jun 4, 2021

I think as a start, all the kakoune commands are applicable and should be easy to do:

|: pipe each selection through the given external filter program and replace the selection with it’s output.
<a-|>: pipe each selection through the given external filter program and ignore its output
!: insert command output before selection
<a-!>: append command output after selection

I'm not too opinionated on whether this should be a keymap or a :pipe command.

@Omnikar Omnikar mentioned this issue Aug 3, 2021
2 tasks
@sudormrfbin sudormrfbin linked a pull request Aug 6, 2021 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants