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

shell-command-on-cell #2391

Open
blais opened this issue Apr 25, 2024 · 1 comment
Open

shell-command-on-cell #2391

blais opened this issue Apr 25, 2024 · 1 comment
Labels

Comments

@blais
Copy link

blais commented Apr 25, 2024

My mind completely blown today as I'm finally digging into the docs and tutorials and learning Visidata. Amazing tool! :-) I've been wanting for and dreaming about this for years (heavy Emacs/tmux/console user here).

I've dug around a fair bit and couldn't figure out how to run a shell command on the current cell/row in directory mode (default invocation if you just type "vd"). I'd like to run a command such as "evince" on a PDF file for example. I've seen Ctrl + O which invokes $EDITOR, but given the amazing number of features and demos I'd be really surprised if it's not always built in. I couldn't find it.

Thank you for building this tool, I'm going to write plugins

@blais blais added the wishlist label Apr 25, 2024
@blais
Copy link
Author

blais commented Apr 25, 2024

I looked at the source and indeed it seems like it's not there, that is, a command that would read a shell command as input and run it with the value of the current cell contents. The code is straightforward, I might send a PR over the weekend.

In my digging around I noticed the color_shellcmd is not used anywhere. Probably vestigial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant