Add configurable shortcuts
Configurable shortcuts would be nice.
Comments (4)
-
repo owner -
Hello. First of all, thanks a lot for this plugin !!! I'm a user of PSPad software that includes "Quikmarks". A while ago, I wanted to switch to NotePad++ but wasn't able to do so as I missed a lot the "Quikmarks" functionality. Now that it exists thanks to your plugin, I may switch to NotePad++. However, I also would like to be able to configure shortcuts. But it doesn't work properly : even via Settings -> ShortcutMapper->TabPluginCommands->...
What I would like to have : Ctrl+Shift+1,2,3,... -> Toggle Bookmark. Ctrl+1,2,3...-> Go to bookmark. The default shortcuts work but not these ones. I must specify that I use a french keyboard and the 1 is on the same key as &. Perhaps the key is misinterpreted ? Is there a way to force shortcuts in the configuration files of the plugin ? In the list to configure shortcuts, I don't have the character & Thanks for your help
-
repo owner Hi, the default shortcuts of Notepad++ have a higher priority and sadly
Ctrl + Shift + 1-5
andCtrl + 1-5
are already mapped to1st-5th style
actions. However you can remove these default mappings either by using the cumbersomeShortcut mapper
dialog or by modifying the file%APPDATA%\Notepad++\shortcuts.xml
directly.Here is an example of my
shortcuts.xml
withtoggle bookmark
shortcuts mapped toCtrl + Shift + 1-9
andgoto bookmark
shortcuts mapped toCtrl + 1-9
:<NotepadPlus> <InternalCommands> ... <Shortcut id="43033" Ctrl="no" Alt="no" Shift="no" Key="0" /><!-- removes default mapping of Ctrl + Shift + 1 --> <Shortcut id="43034" Ctrl="no" Alt="no" Shift="no" Key="0" /><!-- removes default mapping of Ctrl + Shift + 2 --> <Shortcut id="43035" Ctrl="no" Alt="no" Shift="no" Key="0" /><!-- removes default mapping of Ctrl + Shift + 3 --> <Shortcut id="43036" Ctrl="no" Alt="no" Shift="no" Key="0" /><!-- removes default mapping of Ctrl + Shift + 4 --> <Shortcut id="43037" Ctrl="no" Alt="no" Shift="no" Key="0" /><!-- removes default mapping of Ctrl + Shift + 5 --> <Shortcut id="43039" Ctrl="no" Alt="no" Shift="no" Key="0" /><!-- removes default mapping of Ctrl + 1 --> <Shortcut id="43040" Ctrl="no" Alt="no" Shift="no" Key="0" /><!-- removes default mapping of Ctrl + 2 --> <Shortcut id="43041" Ctrl="no" Alt="no" Shift="no" Key="0" /><!-- removes default mapping of Ctrl + 3 --> <Shortcut id="43042" Ctrl="no" Alt="no" Shift="no" Key="0" /><!-- removes default mapping of Ctrl + 4 --> <Shortcut id="43043" Ctrl="no" Alt="no" Shift="no" Key="0" /><!-- removes default mapping of Ctrl + 5 --> </InternalCommands> ... <PluginCommands> ... <PluginCommand moduleName="NppBookmarkManager.dll" internalID="0" Ctrl="yes" Alt="no" Shift="yes" Key="49" /><!-- toggle bookmark 1 on Ctrl + Shift + 1 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="1" Ctrl="yes" Alt="no" Shift="yes" Key="50" /><!-- toggle bookmark 1 on Ctrl + Shift + 2 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="2" Ctrl="yes" Alt="no" Shift="yes" Key="51" /><!-- toggle bookmark 1 on Ctrl + Shift + 3 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="3" Ctrl="yes" Alt="no" Shift="yes" Key="52" /><!-- toggle bookmark 1 on Ctrl + Shift + 4 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="4" Ctrl="yes" Alt="no" Shift="yes" Key="53" /><!-- toggle bookmark 1 on Ctrl + Shift + 5 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="5" Ctrl="yes" Alt="no" Shift="yes" Key="54" /><!-- toggle bookmark 1 on Ctrl + Shift + 6 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="6" Ctrl="yes" Alt="no" Shift="yes" Key="55" /><!-- toggle bookmark 1 on Ctrl + Shift + 7 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="7" Ctrl="yes" Alt="no" Shift="yes" Key="56" /><!-- toggle bookmark 1 on Ctrl + Shift + 8 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="8" Ctrl="yes" Alt="no" Shift="yes" Key="57" /><!-- toggle bookmark 1 on Ctrl + Shift + 9 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="9" Ctrl="yes" Alt="no" Shift="no" Key="49" /><!-- goto bookmark 1 on Ctrl + 1 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="10" Ctrl="yes" Alt="no" Shift="no" Key="50" /><!-- goto bookmark 1 on Ctrl + 2 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="11" Ctrl="yes" Alt="no" Shift="no" Key="51" /><!-- goto bookmark 1 on Ctrl + 3 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="12" Ctrl="yes" Alt="no" Shift="no" Key="52" /><!-- goto bookmark 1 on Ctrl + 4 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="13" Ctrl="yes" Alt="no" Shift="no" Key="53" /><!-- goto bookmark 1 on Ctrl + 5 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="14" Ctrl="yes" Alt="no" Shift="no" Key="54" /><!-- goto bookmark 1 on Ctrl + 6 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="15" Ctrl="yes" Alt="no" Shift="no" Key="55" /><!-- goto bookmark 1 on Ctrl + 7 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="16" Ctrl="yes" Alt="no" Shift="no" Key="56" /><!-- goto bookmark 1 on Ctrl + 8 --> <PluginCommand moduleName="NppBookmarkManager.dll" internalID="17" Ctrl="yes" Alt="no" Shift="no" Key="57" /><!-- goto bookmark 1 on Ctrl + 9 --> </PluginCommands> ... </NotepadPlus>
Hope this helps.
-
Hi.
First, I made the modification in the installation folder of NotePad++. It didn't work. So, I read carefully what you had written and I saw you had said to do it in the %APPDATA% folder.
Then, I made the modification from NotePad++ in the shortcuts.xml file but when I left the file, it was crushed by default settings.
Finally, I made the modification from PsPad and it worked. Right now, I have the shortcuts I expected in NotePad++. I'm going to use it intensively in the next hours. I will let you know if I see any misbehaviour of your bookmarks plugin.
Thanks a lot for your support and for this plugin - Log in to comment
Hi there, this is already possible. You can change the shortcuts via Settings -> Shortcut Mapper -> Tab Plugin Commands -> Scroll down to Toggle Bookmark, Goto Bookmark.