Author Topic: Default key mappings  (Read 1266 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1759
  • Hero Points: 172
  • Text
Default key mappings
« on: September 12, 2016, 08:24:58 pm »
I want to bind a command to a key and ran into the usual dilemma - which key ?!?


This led me to discover/realize an oddity about Ctrl+Shift+8 - most Ctrl+<Digit> and Ctrl+Shift+<Digit> keys are mapped to bookmarking, but this one is mapped to view-specialcharacators-toggle.


The curious thing though is that this doesn't show up anywhere -- it doesn't seem to have a "def" entry in any of the *.e or *.sh files, and it doesn't show up when I export key mappings - and it isn't in the keycharts in ProgramFiles\Slick\Docs\*.pdf.




Where are the definitions for keymappings for the various emulations?




Interestingly, exporting keymappings exports almost nothing on a default setup (good feature - if slightly annoying in this case).


"Save Chart" seems to export everything.
It would be nice if "Save Chart" would indicate which mappings are default and which are customized.




Feature request: Slick should suggest a good mapping for commands which don't yet have mappings so I don't have to try to figure one out that makes sense.




Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4743
  • Hero Points: 383
Re: Default key mappings
« Reply #1 on: September 12, 2016, 09:47:51 pm »
Default emulation mappings are in <installation-dir>/plugins/com_slickedit.base.zip/com_slickedit.base/eventtab_profiles/eventtab_profiles.emulation-*

Note: If you search for a specific key binding (like C-1), you might not find it since there are range bindings.

For example,             
Code: [Select]
<p n="'C-0'-'C-9'" v="alt-bookmark"/>

There would be a major problem if the code didn't do ranges like this. In some cases, there are boat loads of keys being bound.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2713
  • Hero Points: 413
Re: Default key mappings
« Reply #2 on: September 12, 2016, 09:51:28 pm »
This is not exactly what you are looking for, but I put in the "what-are" command years ago so that you could try different keys until you found something that wasn't mapped somewhere.  Just run "what-are" from the command line and start hitting key combos until you get something that is not mapped.  Note, it does not work with emacs-style multi-key sequences.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4743
  • Hero Points: 383
Re: Default key mappings
« Reply #3 on: September 12, 2016, 10:09:11 pm »
Interesting idea

Graeme

  • Senior Community Member
  • Posts: 2323
  • Hero Points: 305
Re: Default key mappings
« Reply #4 on: September 13, 2016, 12:47:44 pm »
You could try this - it displays all your keybindings in groups.

https://community.slickedit.com/index.php/topic,5461.0.html

jporkkahtc

  • Senior Community Member
  • Posts: 1759
  • Hero Points: 172
  • Text
Re: Default key mappings
« Reply #5 on: September 13, 2016, 02:45:29 pm »
Thanks.