pindexis / marker

The terminal command palette
MIT License
2.02k stars 106 forks source link

bash: bash_execute_unix_command: cannot find keymap for command #45

Open onknows opened 6 years ago

onknows commented 6 years ago

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 commented 6 years ago

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"'
intersel commented 6 years ago

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

fidian commented 5 years ago

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"'
MagnetonBora commented 5 years ago

Is there any chance to have it resolved without workarounds?

intika commented 5 years ago

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'