marker
marker copied to clipboard
bash: bash_execute_unix_command: cannot find keymap for command
On Ubuntu 16.04 after installation when I press cntrl space i see
bash: bash_execute_unix_command: cannot find keymap for command
cntrl k for example is working btw, so it seems to be installed correctly
Workaround for this issue is to replace in bin/marker.sh
bind -x '"'"$marker_key_get"'":_marker_get'
With
bind -x '"\emg1":"_marker_get"'
bind '"'"$marker_key_get"'":"\emg1"'
had same bug on debian 8.4 solution of @onknows works perfectly
In my .bashrc
as a workaround, I have these lines. That way I can still keep the original source unmodified. I'd still prefer to have the workaround implemented.
# Fix issue #45
bind -x '"\emg1":"_marker_get"'
bind '"'"${MARKER_KEY_GET:-\C-@}"'":"\emg1"'
Is there any chance to have it resolved without workarounds?
Quote from https://github.com/pindexis/marker/issues/28
Ok so I finally succeeded to reproduce. It seems be related to Ctrl+space binding in Bash 4+. Switching the key-binding to something other that Ctrl+space will fix the issue. You can do that by setting the
MARKER_KEY_GET
env in .bashrc (before sourcing marker):export MARKER_KEY_GET='\C-l' [[ -s "$HOME/.local/share/marker/marker.sh" ]] && source "$HOME/.local/share/marker/marker.sh"
It would be good to try this on the latest tip of the master branch
for me rebinding to ctrl+x do the trick
export MARKER_KEY_GET='\C-X'