LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-02-2008, 02:48 PM   #1
linuxquestionsorg42
LQ Newbie
 
Registered: Sep 2006
Posts: 9

Rep: Reputation: 0
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.
 
Old 02-07-2008, 01:46 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,675

Rep: Reputation: Disabled
Quote:
Originally Posted by linuxquestionsorg42 View Post
...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.

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?
What selections do you use in "Configure Kate" => "Editor" => "Indentation"? Did you play with those?

Quote:
Originally Posted by linuxquestionsorg42 View Post
... (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....
"Configure Shortcuts" should do the trick.

If that doesn't help, can you post (part of) the file which creates your problems so I could try it out to see the effects you mean firsthand?
 
  


Reply

Tags
format, kate


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kate (text editor) on Cygwin - how to? icic Linux - Software 4 08-21-2008 12:25 PM
Kwrite/Kate: how to move one sentence back or forward in text? bhy Linux - Software 4 08-18-2007 04:18 PM
Simple Text Reformatting problem mikefazz Programming 2 10-08-2004 03:53 PM
Question on the DCOP interface to KDE Advanced Text Editor (Kate) Laurene Linux - Newbie 0 02-25-2004 01:29 PM
Highlighted text in Vi doncrawley Linux - Newbie 3 10-18-2003 08:37 AM


All times are GMT -5. The time now is 04:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration