topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday December 13, 2024, 3:02 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

Last post Author Topic: Finished Coding Snack: Organize Text  (Read 49435 times)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,824
    • View Profile
    • Donate to Member
Re: organize text
« Reply #25 on: July 19, 2010, 04:08 PM »
skwire works on an AHK script that does this very well, hope he will post his work soon

ebs that looks very interesting, not sure how it works though

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: organize text
« Reply #26 on: July 24, 2010, 07:52 PM »
Here's what kalos and I came up with.  "Text Targets" is the name. 

Download

Features
  • Unicode compatible.  The app can read UTF-16 or UTF-8 files.  Target files are written in UTF-8.
  • Select up to thirty target files.
  • Each target file can have its own hotkey.  Spacebar skips a line.

Workflow
  • Choose a source file.
  • Set destination/target files.
  • Click Start.
  • The "Line" field will then show the first line of the source file.
  • At this point, you can choose a target file for the line or simply skip it.
  • After choosing a target file or skipping, the next line is shown and so on until you click Stop or reach the end of the source file.
  • Lines that were sent to a target file are removed from the source file once Stop is clicked or the end of the file is reached.  Skipped lines remain in the source file.

2010-07-24_193344.pngFinished Coding Snack: Organize Text

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Finished Coding Snack: Organize Text
« Reply #27 on: July 24, 2010, 08:10 PM »
nice work ebs and skwire  :up:

nogojoe

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 169
    • View Profile
    • Donate to Member
Re: Finished Coding Snack: Organize Text
« Reply #28 on: July 25, 2010, 05:45 AM »
Here's what kalos and I came up with.  "Text Targets" is the name. 

Download


Features
  • Unicode compatible.  The app can read UTF-16 or UTF-8 files.  Target files are written in UTF-8.
  • Select up to thirty target files.
  • Each target file can have its own hotkey.  Spacebar skips a line.

Workflow
  • Choose a source file.
  • Set destination/target files.
  • Click Start.
  • The "Line" field will then show the first line of the source file.
  • At this point, you can choose a target file for the line or simply skip it.
  • After choosing a target file or skipping, the next line is shown and so on until you click Stop or reach the end of the source file.
  • Lines that were sent to a target file are removed from the source file once Stop is clicked or the end of the file is reached.  Skipped lines remain in the source file.
(see attachment in previous post)

Hi Skwire.

had a try with this AHK   and I find that my target file gets  put in at the beginning of the 1st line.
also the hotkeys aren't being saved just been using control 1  control 2 in trying this out.

nogojoe
Often the most convincing people are those who have lost the plot so much they don't recognize the difference between fact and fantasy

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: Finished Coding Snack: Organize Text
« Reply #29 on: July 25, 2010, 02:23 PM »
had a try with this AHK   and I find that my target file gets  put in at the beginning of the 1st line.
also the hotkeys aren't being saved just been using control 1  control 2 in trying this out.

Crap, I must've broken the hotkey saving at some point.  It should be fixed now so please re-download.  As for your other issue, I'm going to guess it has something to do with AHK_L's Unicode handling and my lack of Unicode programming experience  :D.  Would you mind sending me one of those files, please?
« Last Edit: July 25, 2010, 02:29 PM by skwire »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: Finished Coding Snack: Organize Text
« Reply #30 on: July 25, 2010, 06:15 PM »
Uploaded another build that should fix an issue where the source file wasn't re-written properly after clicking stop.

Download

ha14

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 276
    • View Profile
    • Donate to Member
Re: Finished Coding Snack: Organize Text
« Reply #31 on: August 13, 2010, 02:08 PM »
Hi

Nice one thanks.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: Finished Coding Snack: Organize Text
« Reply #32 on: August 13, 2010, 02:25 PM »
You're welcome.  I'm glad you find it useful.

calikoala

  • Participant
  • Joined in 2011
  • *
  • Posts: 1
    • View Profile
    • Donate to Member
Re: Finished Coding Snack: Organize Text
« Reply #33 on: June 09, 2011, 08:12 PM »
kalos,

I have a need for a program like this from time to time. I've been too lazy to write one, but your request made me finally go ahead and do it.
How about this?
 (see attachment in previous post)
It's pretty simple to use:
1. Open your input file and each line is displayed in the top list.

2. Specify your output filenames in the bottom list. You can have up to 36 output files, corresponding to tags "0" to "9" and "A" to "Z".
    Files (and the necessary folders) are created if they don't exist. You can choose to overwrite or append to existing files.

3. Tag each line of the input file for the desired output file by pressing the appropriate key.
    The highlight automatically moves down the list as each line is tagged. You can use the Shift or Ctrl key to tag multiple lines.
    If you enter an incorrect tag, just select the line (or lines) and enter the new tag.

4. When you're done tagging input lines, click the "Write Files" button and your tagged lines will be written to the specified output files.

I've got the basic application written, but I want to add the ability to save output filenames,
so they don't have to be re-entered (if you use the same files each time).

If this would be useful, I would be glad to contribute it when I'm done - let me know.

EBS,  did you make this program available?   I would like to use it...

Paul Keith

  • Member
  • Joined in 2008
  • **
  • Posts: 1,989
    • View Profile
    • Donate to Member
Re: Finished Coding Snack: Organize Text
« Reply #34 on: September 15, 2011, 11:41 AM »
I know necro-posting is looked down upon but it finally dawned on me how radical Text Targets is. (Note that I haven't downloaded the program so I'm not sure I get this correctly.)

This thing, in concept, would arguably be the fastest GTD Weekly Review processor for any .txt GTD softwae set-up that was ever invented.

You could literally quick capture every task in Anuran, mass-export the archives via AnuVu..., send the text to this program...create several .txts like @Work, or @PC, or Someday/Maybe and then line by line send these tasks in one full scroll without ever having to be overloaded by all the tasks in front of you. Wow!

Consider my head blown. This is the first app that made me regret not using GTD anymore.

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,824
    • View Profile
    • Donate to Member
Re: Finished Coding Snack: Organize Text
« Reply #35 on: September 15, 2011, 01:10 PM »
I know necro-posting is looked down upon but it finally dawned on me how radical Text Targets is. (Note that I haven't downloaded the program so I'm not sure I get this correctly.)

This thing, in concept, would arguably be the fastest GTD Weekly Review processor for any .txt GTD softwae set-up that was ever invented.

You could literally quick capture every task in Anuran, mass-export the archives via AnuVu..., send the text to this program...create several .txts like @Work, or @PC, or Someday/Maybe and then line by line send these tasks in one full scroll without ever having to be overloaded by all the tasks in front of you. Wow!

Consider my head blown. This is the first app that made me regret not using GTD anymore.

not sure I understood your post, but I agree this app is a masterpiece

Paul Keith

  • Member
  • Joined in 2008
  • **
  • Posts: 1,989
    • View Profile
    • Donate to Member
Re: Finished Coding Snack: Organize Text
« Reply #36 on: September 15, 2011, 01:39 PM »
Well, my post is directed at my understanding of GTD. If you are not familiar w/ GTD, then that's where the misunderstanding comes from.

If you are familiar with GTD however but still misunderstood, maybe you can point out which section of my post confused you and I'll do my best to expand on it.