Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions bin/marker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,15 @@ elif [[ -n "$BASH" ]]; then
READLINE_POINT="${#READLINE_LINE}"
}

# bind -x somehow doesn't support ctrl+space directly
bind -x '"\emg1":"_marker_get"'
bind '"'"$marker_key_get"'":"\emg1"'
if [[ $- =~ .*i.* ]]; then
# bind -x somehow doesn't support ctrl+space directly
bind -x '"\emg1":"_marker_get"'
bind '"'"$marker_key_get"'":"\emg1"'

bind -x '"\emm1":"_marker_mark_1"'
bind -x '"\emm2":"_marker_mark_2"'
bind '"'"$marker_key_mark"'":"\emm1\n\emm2"'
bind -x '"\emm1":"_marker_mark_1"'
bind -x '"\emm2":"_marker_mark_2"'
bind '"'"$marker_key_mark"'":"\emm1\n\emm2"'

bind -x '"'"$marker_key_next_placeholder"'":"_move_cursor_to_next_placeholder"'
bind -x '"'"$marker_key_next_placeholder"'":"_move_cursor_to_next_placeholder"'
fi
fi