]> gitweb.fluxo.info Git - rhatto/dotfiles/wyrd.git/commitdiff
Workaround to avoid VIM key binding conflict
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 5 Oct 2017 13:45:35 +0000 (10:45 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 5 Oct 2017 13:45:35 +0000 (10:45 -0300)
wyrdrc.dot.link

index 4bf209352997f87fb3575ab4852699b1d8c130ea..c7332126491a555b058c00547185e5c472a81d37 100644 (file)
@@ -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 "<down>"            scroll_down