From 67159eb86e94e71f544da2ffafd11e6b893eaa35 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 5 Oct 2017 10:45:35 -0300 Subject: Workaround to avoid VIM key binding conflict --- wyrdrc.dot.link | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/wyrdrc.dot.link b/wyrdrc.dot.link index 4bf2093..c733212 100644 --- a/wyrdrc.dot.link +++ b/wyrdrc.dot.link @@ -4,12 +4,22 @@ set remind_command="remind" # the default reminder file to display set reminders_file="$HOME/.custom/reminders" + +# Due to some Wyrd Weirdness, we cannot unbind Alt-q key combo that might conflict with VIM key mapping +# Then we invoke a separate terminal to edit the file so the key combo does not conflict +# command for editing an old appointment, given a line number %line% and filename %file% +set edit_old_command="terminal ${VISUAL:-$EDITOR} +%line% %file%" +# command for editing a new appointment, given a filename %file% +set edit_new_command="terminal ${VISUAL:-$EDITOR} +999999 %file%" +# command for free editing of the reminders file, given a filename %file% +set edit_any_command="terminal ${VISUAL:-$EDITOR} %file%" + # command for editing an old appointment, given a line number %line% and filename %file% -set edit_old_command="${VISUAL:-$EDITOR} +%line% %file%" +#set edit_old_command="${VISUAL:-$EDITOR} +%line% %file%" # command for editing a new appointment, given a filename %file% -set edit_new_command="${VISUAL:-$EDITOR} +999999 %file%" +#set edit_new_command="${VISUAL:-$EDITOR} +999999 %file%" # command for free editing of the reminders file, given a filename %file% -set edit_any_command="${VISUAL:-$EDITOR} %file%" +#set edit_any_command="${VISUAL:-$EDITOR} %file%" # templates for creating new appointments # %monname% -> month name, %mon% -> month number, %mday% -> day of the month, @@ -86,6 +96,9 @@ set untimed_window_width="40" # whether or not to render untimed reminders in boldface set untimed_bold="true" +# Wyrd listens to Meta-q combo, which might conflict with a VIM key mapping +#unbind "\\Cq" + # key bindings bind "j" scroll_down bind "" scroll_down -- cgit v1.2.3