Hi Silvan, After some refactoring the functionality of your patches should now be merged, thanks! It should now also work with slmenu, I guess you only used it with dmenu?
The behavior could still be improved. It would be handy to pass the prefix as the initial prompt value to the menu tool which would start with the filter applied. Instead of removing the prefix from the returned text (as you did with sed(1)), we would replace the whole word/prefix with whatever is returned from the external process. Conceptually the syntax would become: $ extract_words | grep '^prefix' | sort | uniq | slmenu 'prefix' or even: $ extract_words | sort | uniq | slmenu 'prefix' I'm considering importing slmenu into the vis repository as vis-menu and implementing the necessary changes. This would ease packaging by distributions and make vis behave always the same independent of whether it is run in a X11 environment. It would however also make it more difficult for users who prefer dmenu, opinions? -- Marc André Tanner >< http://www.brain-dump.org/ >< GPG key: 10C93617