Bug 403160 - Tools > Scripts > Quick Coding: supposed usage?
Summary: Tools > Scripts > Quick Coding: supposed usage?
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: scripting (show other bugs)
Version: 18.12.1
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-13 00:10 UTC by Gregor Mi
Modified: 2022-05-07 18:45 UTC (History)
2 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 Gregor Mi 2019-01-13 00:10:16 UTC
Hello, how is the Quick Coding plugin currently supposed to work?

1. I looked at src/frameworks/ktexteditor/src/script/data/files/quickcoding/cpp/c.template and https://www.smashingmagazine.com/2013/03/goodbye-zen-coding-hello-emmet/ (Quick Code was modeled after Zen Code says quickcoding.js)

2. I entered "class" (without "") into a cpp file

3. and invoked Expand Abbriviation. Nothing happens.
Comment 1 Dominik Haumann 2019-01-30 18:16:16 UTC
In ktexteditor.git, I can find in the code this comment:

     * construct abbreviation object
     * e.g. for c#n:Test#p:Parent => { "n" => "Test", "p" => "Parent" }

Testing this with highlighting C++: c#n:Point <Ctrl>+<Alt>+# indeed expands to the class defined in ktexteditor/src/script/data/files/quickcoding/cpp/c.template

Some years ago this was added, mostly as test. It still works, but never left the testing stage. It probably lacks a proper UI, and I think this should rather be a plugin (like external tools etc...).
Comment 2 Justin Zobel 2020-11-13 03:33:35 UTC
I agree this should likely just be a plugin addon.
Comment 3 Christoph Cullmann 2022-05-07 18:44:20 UTC
That can just be removed, was never documented nor finalized by me.
Comment 4 Christoph Cullmann 2022-05-07 18:45:07 UTC
Git commit 3346a05c277c63b6e39dd27d991db27faccdb0cf by Christoph Cullmann.
Committed on 07/05/2022 at 18:44.
Pushed by cullmann into branch 'master'.

remove never finished quick coding

was never documented nor finalized

D  +0    -168  src/script/data/commands/quickcoding.js
D  +0    -17   src/script/data/files/quickcoding/cpp/a.template
D  +0    -16   src/script/data/files/quickcoding/cpp/c.template

https://invent.kde.org/frameworks/ktexteditor/commit/3346a05c277c63b6e39dd27d991db27faccdb0cf