Re: [dev] dmenu / enso

From: Preben Randhol <randhol_AT_pvv.org>
Date: Mon, 22 Jun 2009 15:08:53 +0200 (CEST)

> I would admit that an interesting extension to dmenu would be the
> ability to provide possible completions after each space, i.e.:
> - open dmenu, list of commands shows up
> - I type "opensshwi<TAB><SPACE>"
> - dmenu calls getcompletions("opensshwindow"), which returns a list of
> my favorite hosts: "suckless.org" and "whitehouse.gov"
> - dmenu displays said list
> - I type "s<TAB><ENTER>"
> - dmenu prints "opensshwindow suckless.org" to stdout

There are ways around this. 2 ways

1. make a dmenu_ssh script that you start with a shortcut and then simply
choose the server you want from a list of servers:

SERVER=$(cat /path/to/server-list | dmenu -p "server:" )
yoursshtool $SERVER

Then you do suc<TAB><ENTER>

2. make a script and put it in f.ex /usr/local/bin called f.ex: myssh

that runs

SERVER=$(cat /path/to/server-list | dmenu -p "server:" )
yoursshtool $SERVER

Then you do mys<TAB><ENTER>suc<TAB><ENTER>
Received on Mon Jun 22 2009 - 13:08:53 UTC

This archive was generated by hypermail 2.2.0 : Mon Jun 22 2009 - 13:12:01 UTC