topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday March 18, 2024, 9:41 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Tabbed Plaintext: Good or not-so-good idea?  (Read 7423 times)

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,466
    • View Profile
    • Donate to Member
Tabbed Plaintext: Good or not-so-good idea?
« on: December 13, 2010, 09:27 AM »
Sometimes I need the same text a few times with only a few modifications, like: for posting in my WordPress and in discussion boards. As I found it pointless to have one separate text file per format, I usually write it pseudo-formatted and do some regex search and replace on the fly.

Some days ago I had an idea how to optimize handling such things:
"Multi-paged" plaintext.

My approach:
I define a "separator" as a page-break symbol and split the text into multiple tabs then.

Raw draft:

This is text on page 1. Some more text. Yay!

==========================

This is text on page 2. Look how funny it is. Dance, joy.

--->

________________________________________
| Tabbed Plaintext Editor            |_|X|
|________________________________________|
|        |________                       |
| Page 1 | Page 2 |                      |
|________|________|______________________|
|                                        |
| This is text on page 1. (...)          |
|                                        |
|________________________________________|

Pro:
* The "tabbed" text files are still plaintext, so they can be edited even with Notepad.
* No bells & whistles, only splitting.

Con:
Well, name them. I wanted to start coding it in January or something, so if there is something wrong with my thoughts, it would be fine if I knew it in time.

 :)

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,199
    • View Profile
    • Donate to Member
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #1 on: December 13, 2010, 10:18 AM »
If you're on Windows - with a handle like Tuxman I expect you have a strong preference for Linux - would mouser's Form Letter Machine be equivalent?

The Form Letter Machine  is a program that will help you to write letters and emails by mixing and matching from pre-written paragraphs.

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,466
    • View Profile
    • Donate to Member
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #2 on: December 13, 2010, 11:02 AM »
Well, I like penguins :) but I don't target a specific OS.
It is similar indeed, but it works differently and does a lot of stuff that I don't need, like assigning “text types“, pairs of keys and values etc.

What I want to do is nothing more than, basically, a tabbed Notepad.

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,746
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #3 on: December 14, 2010, 02:10 AM »
Do you want it to actually create the tabs and pages in ASCII like that, or were you just using ASCII to demonstrate what you wanted?

If you really just need a tabbed text editor, why not use something like Sublime Text, Edit Pad, or NotePad++?

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,466
    • View Profile
    • Donate to Member
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #4 on: December 14, 2010, 04:33 AM »
I was just using ASCII to demonstrate what I wanted. Too lazy to do some GUI mockups.

Because they don't allow me to have multiple "pages" in only 1 file.  :P

I found it pointless to have one separate text file per format

superboyac

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
    • View Profile
    • Donate to Member
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #5 on: December 14, 2010, 09:03 AM »
Interesting...a multi-page text file.

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,466
    • View Profile
    • Donate to Member
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #6 on: December 26, 2010, 10:48 AM »
If anyone cares, theory is done. Now we'll head over to the actually complicated part.

kunkel321

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 597
    • View Profile
    • Donate to Member
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #7 on: December 26, 2010, 11:36 AM »
Hey, this sounds pretty cool!  At work I use a singe large txt file that is a list of about 500 clients' contact info, alphabetized.   I always thought it would be nice if I could drill-down into the contents, by initial, in the same way that most contacts databases do...  Sounds like your system would work for that.  I'd humbly recommend allowing multiple rows of tabs....  I like my text editors to be narrow and off to the side of my desktop.  Also, you indicated a separation as being 13 dashes,   maybe a less-restrictive number, such as >30, <10 would be easier... (though the rebel in me does like the #13  ;)  )

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,466
    • View Profile
    • Donate to Member
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #8 on: December 26, 2010, 11:54 AM »
As the separator is user-defined and might as well be changed globally, depending on the implementation, it's OK.
But I do like 13, too.  8)