Bug 510666

Summary: Kate insert comment # is column first, Can change insert # to before word? In shell script.
Product: [Applications] kate Reporter: SkyWalteron <regionstellarship_fouroner>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 25.08.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description SkyWalteron 2025-10-16 02:39:20 UTC
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