marker icon indicating copy to clipboard operation
marker copied to clipboard

bash: bash_execute_unix_command: cannot find keymap for command

Open onknows opened this issue 7 years ago • 5 comments

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

onknows avatar Feb 07 '18 14:02 onknows

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"'

onknows avatar Feb 07 '18 15:02 onknows

had same bug on debian 8.4 solution of @onknows works perfectly

intersel avatar Mar 01 '18 15:03 intersel

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"'

fidian avatar Oct 25 '18 14:10 fidian

Is there any chance to have it resolved without workarounds?

MagnetonBora avatar Feb 15 '19 15:02 MagnetonBora

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'

intika avatar Apr 17 '19 04:04 intika