Bug 364239 - Snippet keyboard shortcut doesn't work
Summary: Snippet keyboard shortcut doesn't work
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: plugin-snippets (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-12 13:00 UTC by edA-qa mort-ora-y
Modified: 2019-07-18 18:18 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description edA-qa mort-ora-y 2016-06-12 13:00:44 UTC
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
Comment 1 Sven Brauch 2016-06-13 12:36:13 UTC
I cannot reproduce this issue. Is Ctrl+1 the exact shortcut you used? Which version of kate is this?
Comment 2 Sven Brauch 2016-06-13 12:38:30 UTC
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.
Comment 3 Nikolaos Kakouros 2017-02-16 01:01:22 UTC
In kate 16.2.2, the shortcut will work after a restart of kate.
Comment 4 Maxime Corteel 2017-04-10 10:31:24 UTC
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.
Comment 5 bark mallard 2019-06-18 20:22:28 UTC
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.
Comment 6 Thomas Schöps 2019-07-07 17:05:58 UTC
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
Comment 7 Christoph Cullmann 2019-07-14 08:37:30 UTC
Fixed then, or?
Comment 8 Thomas Schöps 2019-07-18 18:18:39 UTC
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.