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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-02-2008, 02:48 PM
|
#1
|
|
LQ Newbie
Registered: Sep 2006
Posts: 9
Rep:
|
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.
|
|
|
|
02-07-2008, 01:46 AM
|
#2
|
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 14, Chakra
Posts: 3,516
Rep: 
|
Quote:
Originally Posted by linuxquestionsorg42
...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
... (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?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:50 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|