broot icon indicating copy to clipboard operation
broot copied to clipboard

Broot to "accept" input when verb argument is presented

Open FIREBAT-66 opened this issue 2 months ago • 1 comments

Hello @Canop! I was curious if broot has the ability to run this type of "verb

{
    name: touch
    key: ctrl-t
    invocation: t {new_file}
    execution: "touch {directory}/{new_file}"
    leave_broot: false
}

The expected results would be that I press CTRL+t and that broot will wait for me to places the {new_file} name in the bottom input bar. It should do this when it expects an "input", which is the {new_file}. Is there a way to do this in broot alread? I could be simply missing the right way to configure this verb! Thank you for your support and development on this utility!

FIREBAT-66 avatar Oct 20 '25 01:10 FIREBAT-66

I think you want to set auto_exec to false:

{
    name: touch
    key: ctrl-t
    invocation: "touch {new_file}"
    execution: "touch {directory}/{new_file}"
    leave_broot: false
    auto_exec: false
}

Canop avatar Nov 04 '25 19:11 Canop

@Canop thank you that worked - had the same question. I think this should be added to the documentation and the examples in the verb.conf

themipper avatar Dec 18 '25 21:12 themipper

@themipper You're probably right. But it's not easy adding things in both without making them very heavy and painful to read. I'll try to find the best place to mention that.

Canop avatar Dec 19 '25 05:12 Canop