Re: [hackers][vis][RFC][PATCH 0/2] Suggestion for basic autocomplete functionality

From: Marc André Tanner <mat_AT_brain-dump.org>
Date: Wed, 18 May 2016 20:10:44 +0200

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
Received on Wed May 18 2016 - 20:10:44 CEST

This archive was generated by hypermail 2.3.0 : Wed May 18 2016 - 20:12:26 CEST