summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2013-11-13 17:15:13 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2013-11-13 17:15:13 +0100
commit3e9775ce1c3e5f623e6a82e4ebb5646bac38f3e6 (patch)
tree92a9aedfe60aa9431b757e02e9caedd42c52f4cb
parent9ed682ee99d6abc2c4ea412c27da769585cdd1bb (diff)
[Keys] tickets or not tickets
-rw-r--r--user:hugues/GusBindings.zsh22
1 files changed, 7 insertions, 15 deletions
diff --git a/user:hugues/GusBindings.zsh b/user:hugues/GusBindings.zsh
index 751fb5e..d52d173 100644
--- a/user:hugues/GusBindings.zsh
+++ b/user:hugues/GusBindings.zsh
@@ -206,22 +206,14 @@ do
bindkey -M $keymap -s '^[w' '^[Q when\n'
fi
- if ( __cmd_exists todo )
+ if ( __cmd_exists tickets )
then
- if ( __cmd_exists rt && __cmd_exists tickets )
- then
- bindkey -M $keymap -s '^[t' '^[Q tickets\n'
- bindkey -M $keymap -s '^[T' '^[Q todo\n'
- else
- bindkey -M $keymap -s '^[t' '^[Q todo\n'
- bindkey -M $keymap -s '^[T' '^[Q todo all -c\n'
- fi
- else
- if ( __cmd_exists rt && __cmd_exists tickets )
- then
- bindkey -M $keymap -s '^[t' '^[Q tickets\n'
- bindkey -M $keymap -s '^[T' '^[Q tickets -a\n'
- fi
+ bindkey -M $keymap -s '^[t' '^[Q tickets\n'
+ bindkey -M $keymap -s '^[T' '^[Q !?tickets\n'
+ elif ( __cmd_exists todo )
+ then
+ bindkey -M $keymap -s '^[t' '^[Q todo\n'
+ bindkey -M $keymap -s '^[T' '^[Q todo all -c\n'
fi
bindkey -M $keymap -s '^[c' '^[Q ./configure\n'