history cache for combi-modi or dmenu? #2246
-
|
hello rofi people, I wrote this command that generate menus from files on fly but the whole idea of it was to be able to use MRU (history) to make it more and more productive (as those menus are shared among users, the best topics should emerge naturally) but it didn't work, nor with -dmenu. according to the doc, history seems to be limited to the run and drun widgets. is that correct? is there a reason for this ? are patches welcome? regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
combi mode is a 'proxy' mode, it does not do anything itself. So if you execute a drun entry, the drun mode will handle the history. Architecture wise history would not work when implementing in the proxy. (The proxy does not know that for run it needs to store the executable name, but for drun the desktop file id. ) |
Beta Was this translation helpful? Give feedback.
For dmenu I think the dmenu script should keep the history.
Rofi does not know what script runs (so what history belongs to what session), what history should be kept, what information it should keep in history, etc (f.e. the visible entry? one of the invisible fields? the index? etc.).
Again implementation wise rofi does not seem to be the right place to implement history.