rofi icon indicating copy to clipboard operation
rofi copied to clipboard

Save history of commands and add hotkeys to scroll through them

Open max-baz opened this issue 7 years ago • 0 comments

Version

Version: 1.5.1-dirty (tags/1.5.1)

Configuration

Output of rofi -help (in a gist):

https://gist.github.com/maximbaz/75fb7eb2c17a922b366831d261f366e8

Launch Command

rofi -show


It's a common task to do something in rofi (open an app, copy a password, calculate a math expression) and then soon realize that you need that same action again.

It would be cool to have all my entered commands be remembered so that I can scroll through them with Ctrl+Up and Ctrl+Down.

I see the behavior in the following way:

  • rofi starts, input box is empty and ready to be filled
  • Press Ctrl+Up to fill the input box with the last submitted command in rofi (regardless of the mode)
  • One more press of Ctrl+Up fills the input box with next-to-last submitted command
  • Pressing Ctrl+Down fills with the last command again
  • One more press of Ctrl+Down clears the input box
  • Type a command, press Enter, rofi is closed and the command is appended to the history file.

max-baz avatar Mar 27 '18 22:03 max-baz