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

            Bug ID: 510666
           Summary: Kate insert comment # is column first, Can change
                    insert # to before word? In shell script.
    Classification: Applications
           Product: kate
      Version First 25.08.1
       Reported In:
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY:
This is example of shell script ".sh" file.
if [ ! -z ${find} ]then
    # 1
    echo "Find"
else
    # 2
    echo "No Find"
fi

If I want comment out of #2 echo, I press Ctrl+D of kate defaults shortcut.
After comment out with Ctrl+D. This.
    # 2
#    echo "No Find"

I want comment "#" insert is not column first, So insert "#" to before word
with hand action.
    # 2
    # echo "No Find"

If python file, insert comment # with Ctrl+D. Kate insert # to before word.
This is example of python ".py" file.
if print == 'A':
    # 1
    print()

else:
    # 2
    pass

If I press Ctrl+D to #2 pass column.
else:
    # 2
    # pass

EXPECTED RESULT:
Python file is insert comment with Ctrl+D, "#" is before word. I need comment
out result is like python with Ctrl+D of shell script too.

Operating System: openSUSE Tumbleweed-Slowroll 20251002
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.17.0-1-default (64-bit)
Graphics Platform: X11
Kate:25.08.1

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

Reply via email to