Hello Thomas,
thank you for your reply and having a look at the patch.
Too bad that choose-list is quite likely to go, I found
it quite handy.

I came up with another solution, which I'd like
to present here quickly should anyone desire
a similar functionality:

Bind a key to create a new tmux window and
run a simple shell script, e.g.:
bind-key C-e neww ~/bin/tmux-run-action

The simple shell script presents a list
of items using select (zsh builtin).
Each item maps to a function name in said script
and when an item is chosen the correlating
function is executed.

Find below a first version of the simple script,
which could be improved by either using dialog et al.
or adding a console based version of dmenu¹
(should that exist).

I do hope that you will overcome your
other personal problems real soon.


Wishing you all the best,
Alexis


¹ http://tools.suckless.org/dmenu/
  http://www.youtube.com/watch?v=Iw6sbQ5NLjM
  The video does not really show the difference between
  dmenu, which is a program, that presents a list of items and
  returns the text of the chosen item and dmenu_run, which uses
  dmenu to present a list of programs available on the system
  and then runs the selected program.


===[ BEGIN ~/bin/tmux-run-action] ===
#!/bin/zsh

function mail {
  tmux neww -t 2 -n mail mutt
}

function calendar {
  tmux neww -n calendar wyrd
}

function irc {
  tmux neww -n irc irssi
}

function rtfm {
  tmux command-prompt -p "Which manpage do you want?" "neww \"man %%\""
}

PS3="Run Action: "
select action in mail calendar irc rtfm
do
  exec $action
  break
done
===[  END  ~/bin/tmux-run-action] ===


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to