I have some snippets with keyboard shortcuts. These keyboard shortcuts do not work when I create a new document or open an existing one. However, if I click on the library heading in the snippet docked tool, the shortcuts start working. That is, I need to manually open the snippet list and click the item once before it works in a document. Reproducible: Always Steps to Reproduce: 1. Create a snippet repository without any file types 2. Add a snippet, any name/text, use a shortcut key, such as `Ctrl+1` or `Ctrl+,` 3. Type Ctrl+1 in a document, nothing happens 4. Open a document, or create new document, press Ctrl+1, nothing happens 5. Close Kate 6. Open Kate 7. Press Ctrl+1, still nothing happens 8. Open Snipper dock, click on the repository 9. In document press Ctrl+1, now it works Version: 15.12.3
I cannot reproduce this issue. Is Ctrl+1 the exact shortcut you used? Which version of kate is this?
Ok, could reproduce it now after trying a bit more. You need to add a new snippet, then it doesn't work. It also doesn't work when the snippet toolview is closed. I'll have a look.
In kate 16.2.2, the shortcut will work after a restart of kate.
This is still a problem in Kate 17.03.80. Shortcuts work, but only after a restart. Changing a shortcut works without a restart though.
I'm finding this trouble persists because I find it convenient to open documents in new instances of Kate. Each new instance requires the Snippets tool to be re-enabled. Upon doing this, my saved snippets appear, but the keyboard shortcuts do not work unless I click on the Snippets Tool View bar and keep it open while I'm working.
The shortcut for a new snippet not working, and shortcuts in general not working while the snippets tool view is minimized should be fixed now: https://phabricator.kde.org/D22309 https://phabricator.kde.org/D22308
Fixed then, or?
I wasn't sure whether "Each new instance requires the Snippets tool to be re-enabled." describes another issue that might still be open. But probably yes.