I got this from the bug entry, it works:
Step by step howto for Kate Application: - Settings > Configure Kate… - ‘External Tools’ page - Create new external tool Label: Word Count Script: copy&paste 3 lines:
url=echo "%URL"|sed -r 's,^\w+\:/+,/,' count=wc -lwm "$url" kdialog —msgbox “Word count for\n%URL:\n$(echo $count|sed -r ‘s,\s(\w+)\s+(\w+)\s+(\w+).,Linebreaks: \1\nWords: \2\nCharacters: \3,’)”
echo "%URL"|sed -r 's,^\w+\:/+,/,'
wc -lwm "$url"
Executable: wc Mime Types: leave blank Save: Current Document Command Line Name: leave blank or type ‘word-count’ - Save & Apply
Use: Tools > External Tools > Word Count
More information about formatting options
Alternative
I got this from the bug entry, it works:
Step by step howto for Kate Application: - Settings > Configure Kate… - ‘External Tools’ page - Create new external tool Label: Word Count Script: copy&paste 3 lines:
url=
echo "%URL"|sed -r 's,^\w+\:/+,/,'count=wc -lwm "$url"kdialog —msgbox “Word count for\n%URL:\n$(echo $count|sed -r ‘s,\s(\w+)\s+(\w+)\s+(\w+).,Linebreaks: \1\nWords: \2\nCharacters: \3,’)”Executable: wc Mime Types: leave blank Save: Current Document Command Line Name: leave blank or type ‘word-count’ - Save & Apply
Use: Tools > External Tools > Word Count