keybindings: add menu-complete-backward (default: Ctrl-TAB)

keybindings: add rerun-root (rerun last command via sudo, default: Alt-r)
parent b1890f7a
......@@ -120,6 +120,9 @@ Overview of changes in v9.1 "Dial T for TNT"
- if you want to re-enable this feature set menu-complete in Keybindings to TAB
with no modificator checked
* add menu-complete-backward (default: Ctrl-Tab)
* add custom rerun-root (rerun last command as root, default: Alt-r)
* made TreeViewColumn headers translatable
=== Readline ===
......
ini_version = 19
ini_version = 20
[Style]
use_bashstyle = False
......@@ -243,4 +243,6 @@ copy_forward_word = ""
forward_char = "C:f"
forward_word = "e:f"
overwrite_mode = ""
menu_complete = X:TAB
menu_complete = "X:TAB"
menu_complete_backward = "C:TAB"
rerun_root = "e:r"
......@@ -17,7 +17,7 @@ export BSNG_DATA_DIR=@DATADIR@
export BSNG_RC_DIR=${BSNG_DATA_DIR}/bashstyle-ng/rc
export BSNG_VERSION=@VERSION@
export BSNG_YEAR="2007 - 2015"
INI_VERSION=19
INI_VERSION=20
source ${BSNG_RC_DIR}/internal/misc
source ${BSNG_RC_DIR}/internal/logging
......
......@@ -16,6 +16,7 @@ keybindings_setter () {
case ${2} in
complete-path) ACT='"\eb`which \ef` \e\C-e"' ;;
rerun-root) ACT='"\ebsudo !!\e\C-e\C-j"' ;;
*) ACT=${2} ;;
esac
......@@ -48,7 +49,7 @@ if [[ ! -e $HOME/.keybindings.bs-ng.* ]]; then
history_search_backward complete_path menu_complete alias_expand_line \
backward_char backward_word backward_delete_char delete_char \
copy_backward_word copy_forward_word forward_char forward_word \
overwrite_mode ; do
overwrite_mode menu_complete_backward rerun_root ; do
keybindings_setter $(ini_get $key) ${key//_/-}
......
......@@ -31,7 +31,7 @@ USER_DEFAULTS_SAVE = (os.getenv('HOME') + '/.bs-ng.ini.save')
FACTORY_DEFAULTS = (DATADIR + '/bashstyle-ng/bs-ng.ini')
VENDOR_DEFAULTS = ('/etc/bs-ng_vendor.ini')
app_ini_version = 19
app_ini_version = 20
class Config(object):
def InitConfig(self):
......
......@@ -70,7 +70,9 @@ keybindings = {
"backward_word",
"forward_word",
"overwrite_mode",
"menu_complete"
"menu_complete",
"menu_complete_backward",
"rerun_root"
}
class CellRendererClickablePixbuf(Gtk.CellRendererPixbuf):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment