Run program on current file/directory?
As the title suggested, it would be nice if we can run commands/ open current file/directory in certain program and keep twf running, similar to fzf.
@snippins just clarifying. You mean to
- Run twf, and then
- when the right file (or directory) is selected, hit some key (like : or ! to be vimish)
- and twf would give you a prompt with the selected filepath populated
- then you type a command around the selected filepath
- then when that command completes, you are back in twf?
@wwalker
That's great, though I would prefer the fzf approach, where you can bind a shortcut to run a command/program, for example: "find . | fzf --bind "ctrl-f:execute:some_command {}"
Thanks! I just started using fzf a couple of weeks ago,hadn't thought of doing it that way yet, but that's slick.
Are you able to run a command on a file in general with twf (even without keeping twf running)?
@nezartarbin twf is meant to be composable following the Unix philosophy, you can always run a command on the selected file like this for example: git add $(twf). This ticket is mainly to run commands with twf open.