https://bugs.kde.org/show_bug.cgi?id=451613

            Bug ID: 451613
           Summary: Snippets fail when not used at the beginning of a line
           Product: kate
           Version: 21.08.3
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: plugin-snippets
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
When I create a snippet and then try to use it mid-sentence, or not at the
beginning of a line, the first few characters of the snippet are removed.


STEPS TO REPRODUCE
1. Create a snippet (in my example: Red{nbsp}Hat Advanced Cluster Management
for Kubernetes (RHACM) )
2. Insert the snippet NOT at the beginning of a line, using the shortcut I have
set up.
3. 

OBSERVED RESULT
1. If inserted at the beginning of a line:
Red{nbsp}Hat Advanced Cluster Management for Kubernetes (RHACM) 

2. If inserted NOT at the beginning of a line:
aed{nbsp}Hat Advanced Cluster Management for Kubernetes (RHACM) 

I believe the "a" in column one is left over from the domain shortcut (ad),
which I use for AsciiDoc files.

3. If inserted mid-sentence:
sp}Hat Advanced Cluster Management for Kubernetes (RHACM)

EXPECTED RESULT

The full snippet should be inserted regardless of cursor position.

SOFTWARE/OS VERSIONS
Some of the following info might not be available because I run Kate and
Konsole on Gnome Classic.
qt-4.8.7-61.fc34.x86_64 if that helps.

Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to