wvanlint / twf

Standalone tree view file explorer, inspired by fzf.
271 stars 11 forks source link

Run program on current file/directory? #8

Open snippins opened 4 years ago

snippins commented 4 years ago

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.

wwalker commented 4 years ago

@snippins just clarifying. You mean to

snippins commented 4 years ago

@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 {}"

wwalker commented 4 years ago

Thanks! I just started using fzf a couple of weeks ago,hadn't thought of doing it that way yet, but that's slick.

nezartarbin commented 3 years ago

Are you able to run a command on a file in general with twf (even without keeping twf running)?

wvanlint commented 3 years ago

@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.