Menu

#650 Add column to "Run commands" tab to display the saved command

Next_release
open
nobody
commands (1)
5
2015-02-13
2015-02-13
No

It bothered me that after saving new user commands I couldn't see the actual command being run. This adds a "Command" column to the shortcut mapper "Run Commands" tab that displays the command to run.

Here is a demo of the new functionality.

Obviously this could work a lot better (the whole dialog could). Would be nice to edit the actual commands, view available macros, add new ones from the shortcut mapper, etc.

The only weird thing about my changes was what I had to do to get a horizontal scrollbar to reliably show up in this tab. Before I found a workaround, going to "Settings > Shortcut Mapper" and clicking "Run commands" would not display the horizontal scrollbar the first time (it would display subsequently if you clicked another tab and then went back). If, however, you got the dialog by going to "Run > Modify Shortcut/Delete Command..." it worked fine. This seemed to be because the first tab displayed had an additional column.

The workaround I found was to:
1) Give all the tabs an extra column, but hide it for everything except "Run commands", and
2) Give the extra column on "Run commands" a very long width.

I think this was some kind of bug in babygrid (or in the way np++ uses it), but at any rate it seems to work just fine with the workaround I described.

1 Attachments

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.