* usr/bin/byobu-config: LP: #888247
  - deprecate the keybinding set selection from the config menu
  - no additional keybindg sets ever showed up, so this option
    is not worth having
This commit is contained in:
Dustin Kirkland 2011-11-09 15:23:28 -06:00
commit 98066fd7b1
2 changed files with 13 additions and 29 deletions

5
debian/changelog vendored
View file

@ -27,6 +27,7 @@ byobu (4.47) unreleased; urgency=low
usr/share/byobu/keybindings/f-keys.tmux.disable,
usr/share/byobu/keybindings/Makefile.am,
usr/share/byobu/profiles/tmux, usr/share/doc/byobu/help.tmux.txt:
- LP: #888247
- Add Shift-F12 to toggle keybindings on/off
- Split tmux keybindings to separate file to source
* usr/bin/byobu-status-detail, usr/lib/byobu/.constants,
@ -57,6 +58,10 @@ byobu (4.47) unreleased; urgency=low
- reorder some documentation
* usr/bin/byobu-launcher-install:
- close LP: #854764, which was recently fixed
* usr/bin/byobu-config: LP: #888247
- deprecate the keybinding set selection from the config menu
- no additional keybindg sets ever showed up, so this option
is not worth having
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 08 Nov 2011 19:16:15 -0600

View file

@ -101,11 +101,10 @@ def menu(snackScreen, size, isInstalled):
li.append(_("Change Byobu's background color"), 2)
li.append(_("Change Byobu's foreground color"), 3)
li.append(_("Toggle status notifications"), 4)
li.append(_("Change keybinding set"), 5)
li.append(_("Change escape sequence"), 6)
li.append(_("Create new windows"), 7)
li.append(_("Manage default windows"), 8)
li.append(installtext, 9)
li.append(_("Change escape sequence"), 5)
li.append(_("Create new windows"), 6)
li.append(_("Manage default windows"), 7)
li.append(installtext, 8)
bb = ButtonBar(snackScreen, (("Exit", "exit", ESC),), compact=1)
g = GridForm(snackScreen, _(" Byobu Configuration Menu"), 1, 2)
@ -170,24 +169,6 @@ def select_color(snackScreen, size, layer):
reload_required()
return 100
def keybindings(snackScreen, size):
li = Listbox(height = 6, width = 60, returnExit = 1)
for choice in commands.getoutput('ls '+SHARE+'/keybindings').splitlines():
if choice != "common" and choice != "none":
li.append(choice, choice)
li.append("none", "none")
bb = ButtonBar(snackScreen, ((_("Apply"), "apply"), (_("Cancel"), "cancel", ESC)), compact = 1)
g = GridForm(snackScreen, _("Which set of keybindings would you like to use?"), 1, 2)
g.add(li, 0, 0, padding=(4,2,4,2))
g.add(bb, 0, 1, padding=(1,1,0,0))
if bb.buttonPressed(g.runOnce()) != "cancel":
switch_keybindings(li.current())
reload_required()
return 100
def switch_keybindings(set):
commands.getoutput(SED + " -i -e 's:^source .*$:source "+SHARE+"/keybindings/"+set+":' "+BYOBU_CONFIG_DIR+"/keybindings")
def newwindow(snackScreen, size):
title=Entry(8, text="shell", returnExit=1)
titlel=Label(_("Title: "))
@ -540,15 +521,13 @@ def main():
tag = select_color(snackScreen, size, "foreground")
elif tag == 4:
tag = togglestatus(snackScreen, size)
elif tag == 5:
tag = keybindings(snackScreen, size)
elif tag == 6:
elif tag == 5:
tag = chgesc(snackScreen, size)
elif tag == 7:
elif tag == 6:
tag = newwindow(snackScreen, size)
elif tag == 8:
elif tag == 7:
tag = defaultwindows(snackScreen, size)
elif tag == 9:
elif tag == 8:
tag = install(snackScreen, size, isInstalled)
isInstalled = autolaunch()