LinuxQuestions.org
Help answer threads with 0 replies.
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 03-25-2006, 04:29 AM   #1
Ander
Member
 
Registered: Apr 2003
Location: Vancouver
Distribution: Debian
Posts: 37

Rep: Reputation: 15
Is there an app like this?


I used to use a Window$ system-tray applet all the time, for reformatting quoted email. I could copy the quoted text to the clipboard, click the applet's icon, and it (a) removed the ">" quote characters and (b) reformatted it (preserving the paragraph breaks).

Is there an applet like this for Linux? If not, is there a way to do the same thing from a script? (Preferably this would work directly with the clipboard, rather than having to save the text as a file each time.) Thanks!
 
Old 03-25-2006, 03:48 PM   #2
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
I don't know of any which are purpose-made made for this, but:

if you have OpenOffice or similat, you could just use the edit/replace text function.

otherwise, you could use vi in a terminal window key-clicks below)
- open a term window
- vi blahblah
- i
- paste text into window
- esc
- :1,$s/>//g

the result won't have any of your >'s ... you can just re-copy&paste it.

Note this is just a simple example... you can build on it to accomplish what you're after..

cheers
 
Old 03-30-2006, 05:02 AM   #3
Ander
Member
 
Registered: Apr 2003
Location: Vancouver
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks for your reply. Yes, I know how to use search/replace in a text editor... That's not really the problem.

I would like to remove > marks and reformat all paragraphs (join all lines not separated by a blank line) in one operation.

In particular, Yahoo Mail breaks up text like this:

> This is an example of the kind of
> text you see in
> quoted Yahoo Mail messages.
>
> I have no idea why it quotes this way, but I think
> you'll agree, it's pretty dumb.

With the applet I described, I would just:

1. Select & copy the text.
2. Click the applet's system-tray icon.
3. Paste the fixed text, which looked like this (without the hyphens):

- - -

This is an example of the kind of text you see in quoted Yahoo Mail messages.

I have no idea why it quotes this way, but I think you'll agree, it's pretty dumb.

- - -

Then I'd add the writer's initials to each paragraph, e.g.:

JS> This is an example of the kind of text you see in quoted Yahoo Mail messages.

Nice, eh?

I just tried this same process in KDE's Kate text editor. It took over 20 keystrokes (without adding the initials).

I did use Kate's Ctrl+J command to reformat each paragraph---but unfortunately it removes blank lines instead of preserving them. Too bad there isn't a choice about that.

Anyway, thanks for listening. (And if someone involved in one KDE's text-editor projects wants to consider adding this kind of feature, that'd be great!)
 
  


Reply


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
Check if an app is running and if it's not launch this app Coume Linux - General 3 07-28-2008 02:34 AM
script or app mailcheck app from shell pandersson61 Linux - Software 1 03-24-2006 08:16 PM
where did the app go? phsythax Linux - Software 2 11-03-2005 12:53 PM
Can someone tell me the name of this app? Harimwakairi Linux - Newbie 4 05-19-2003 06:21 AM
New app install, or, I've d/l'd the app, now what? Dani Linux - Newbie 4 01-06-2002 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration