pindexis / marker

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

Could you allow custom mappings #11

Open CaptainQuirk opened 8 years ago

CaptainQuirk commented 8 years ago

Hi,

Ctrl + t is built-in in the terminal, so is Ctrl + k. Would it be possible for you to allow one to choose the keys the actions are bound to ?

Thanks in advance

pindexis commented 8 years ago

Yes you can. just set the desired key bindings in the following environment variables (in you *.rc): MARKER_KEY_MARK MARKER_KEY_GET MARKER_KEY_NEXT_PLACEHOLDER

here are the default ones:

# default key bindings
marker_key_mark="${MARKER_KEY_MARK:-\C-k}"
marker_key_get="${MARKER_KEY_GET:-\C-@}"
marker_key_next_placeholder="${MARKER_KEY_NEXT_PLACEHOLDER:-\C-t}"
CaptainQuirk commented 8 years ago

Hi,

Ok ! I'll be trying this ! Would you consider sourcing a ~/.markerrc file though ?