Author Topic: Feature Request: Enhance Show/Search All Commands  (Read 107 times)

jkwuc89

  • Senior Community Member
  • Posts: 198
  • Hero Points: 6
Feature Request: Enhance Show/Search All Commands
« on: September 13, 2017, 12:58:20 pm »
My apologies if this has been requested already...

IntelliJ IDEA and Visual Studio Code both have a feature, invoked by an easy to remember keyboard shortcut, that displays a search window where one can find and execute any editor command. The list of commands shown automatically updates as the search string is entered. In Visual Studio Code, the most recently used command is shown at the top of the list. In both, each command in the list also shows its corresponding keyboard shortcut.

SlickEdit does allow one to enter a command in the command line and SlickEdit will show suggestions. Unfortunately, it will only show suggestions whose command name matches at the start of the string. For instance, when I enter "space" in the command line, it only suggests "space-paren". It does not show command suggestions where "space" is not at the start of the command name. Offering suggestions that include the search string anywhere in the command name IMHO would be a significant improvement and bring us closer to what Visual Studio Code and IntelliJ IDEA offer. Displaying the keyboard shortcut to the left of each suggestion would also be a good improvement.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3837
  • Hero Points: 250
Re: Feature Request: Enhance Show/Search All Commands
« Reply #1 on: September 13, 2017, 03:10:03 pm »
SlickEdit does this in the Key Bindings dialog but not on the command line. If we did change the command line this way it might have to be off by default. I'm afraid too many existing users might not like it (it's really a sensitive emulation thing). I think it would be pretty easy to add.

jkwuc89

  • Senior Community Member
  • Posts: 198
  • Hero Points: 6
Re: Feature Request: Enhance Show/Search All Commands
« Reply #2 on: September 13, 2017, 03:26:44 pm »
Enhancing the command line as I suggested and defaulting it to off makes sense. Any chance we could get that in VS 2017?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3837
  • Hero Points: 250
Re: Feature Request: Enhance Show/Search All Commands
« Reply #3 on: September 13, 2017, 03:28:21 pm »
Looking into it. Can't make any promises yet but my gut says it shouldn't be hard.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3837
  • Hero Points: 250
Re: Feature Request: Enhance Show/Search All Commands
« Reply #4 on: September 13, 2017, 07:49:12 pm »
Added for next beta. Not in the GUI yet. Give it a try. Set the macro variable "def_command_completion_style" to 0. Default is 1 (prefix matching). Macro>Set Macro Variable...

jporkkahtc

  • Senior Community Member
  • Posts: 1329
  • Hero Points: 97
  • Text
Re: Feature Request: Enhance Show/Search All Commands
« Reply #5 on: September 13, 2017, 08:16:43 pm »
There is the gui_list_keybindings dialog.
It searches for any partial match, like the key bindings does.

As is, it only shows the commands which have a binding.

But, a similar version of this dialog could be created that shows all commands and allows you to execute the selected command.

gui_list_keybindings is modal, but should be modeless.

jkwuc89

  • Senior Community Member
  • Posts: 198
  • Hero Points: 6
Re: Feature Request: Enhance Show/Search All Commands
« Reply #6 on: September 14, 2017, 11:10:17 am »
Thanks Clark! I will certainly try this out in the next beta.