|
Kate - Aligning text to left and reformatting a highlighted area
I have two editing situations that occur in Kate, and was wondering if anyone has a solution they could share.
(1) I want to align some text to the left-hand side.
Unindent doesn't seem to align to the left side (column 1), when the space on the left is less than the tab/space width. A solution I use is, Ctrl-R and create a regular expression to get rid of the leading tabs/spaces.
But, is there another way that perhaps I overlooked?
Can I get Kate to remember this command or any commands I create (i.e., User tools) and assign a shortcut key to it, or select it from the menu?
(2) I want to re-format a highlighted area within a new width. Word-wrap wraps a line, but doesn't reformat all lines within a highlighted area. A highlighted area might be a code comment section. Although the option is labeled "Word Wrap Document", it appears to only affect the highlighted text and doesn't toggle the Kate Option. A solution, I believe, is to first do a Join Lines (Ctrl-J) and then a Word Wrap. I find myself doing this a lot in a cleanup situation. I'd like to combine these two options into a user command.
Any thoughts regarding Kate and this issue?
Thank you.
|