broot icon indicating copy to clipboard operation
broot copied to clipboard

Feature request: Command to copy a line of text in preview

Open danrobi11 opened this issue 3 years ago • 8 comments

I noticed that we could scroll up/down in a text preview. It would be neat to have a command to quickly copy a line.

danrobi11 avatar Jan 04 '21 11:01 danrobi11

For more (multi-line selection for example), some thought is needed but a verb for the current line seems easy.

Canop avatar Jan 04 '21 11:01 Canop

If you try from the current master, be careful that it only works when broot is compiled with the "clipboard" feature.

Canop avatar Jan 04 '21 20:01 Canop

works when broot is compiled with the "clipboard" feature.

Im trying to know the syntax for the clipboard feature argument from here But I get page not found.

danrobi11 avatar Jan 05 '21 14:01 danrobi11

I didn't know about the "features.md" file practice.

You can compile with cargo build --release --features clipboard.

Feel free to come and chat on Miaou for more info.

Or just wait a few days for the release of broot v1.1.11 which will have the change.

Canop avatar Jan 05 '21 14:01 Canop

I didn't know about the "features.md" file practice.

I've found the link at If you want a custom compilation, have a look at the optional features documentation from here

danrobi11 avatar Jan 05 '21 14:01 danrobi11

Ahaha... totally forgot about this one. Adding a issue.

Canop avatar Jan 05 '21 14:01 Canop

Cool feature! I'm on v1.6.3-1 but it seems don't work (ie alt+c or :copy_line do nothing).

Or just wait a few days for the release of broot v1.1.11 which will have the change.

is it still only as custom compilation?

elbowz avatar Sep 08 '21 10:09 elbowz

I'll have a look. Reopening so that I'm sure not to forget.

Canop avatar Sep 08 '21 10:09 Canop