davatorium / rofi

Rofi: A window switcher, application launcher and dmenu replacement
https://davatorium.github.io/rofi/
Other
13.02k stars 609 forks source link

Select portion of completed candidate like in Chrome Omnibox #456

Open alexherbo2 opened 8 years ago

alexherbo2 commented 8 years ago

Taking foobar, foobaz and fooqux candidates.

Typing foo will select bar.

╭──────────╮
│ foo(bar) │
├──────────┤
├ foobar   ┤
│ foobaz   │
│ fooqux   │
╰──────────╯

Typing foo then pressing tab twice will expand and select qux.

╭──────────╮
│ foo(qux) │
├──────────┤
│ foobar   │
│ foobaz   │
├ fooqux   ┤
╰──────────╯

Pressing backspace or delete will remove / undo expansion.

╭──────────╮
│ foo      │
├──────────┤
│ foobar   │
│ foobaz   │
│ fooqux   │
╰──────────╯

Pressing enter will output foo.

foo
DaveDavenport commented 8 years ago

To be able to do this, we need to add support for 'selection' to the textbox widget.

fogine commented 7 years ago

That would be very nice. #603 might be also solved by this.