topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Tuesday October 8, 2024, 10:46 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: NANY 2019: TextWorx - Universal Text Manipulator  (Read 74675 times)

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
NANY 2019: TextWorx - Universal Text Manipulator
« on: December 28, 2018, 12:01 PM »
NANY 2019 Entry Information

Application Name TextWorx
Version 1.4 Thursday, May 16, 2019
Short Description A universal text manipulator managed via context menu. See screenshot attached.
Supported OSes Windows
Web Pagehttp://www.dcmembers...r/download/textworx/
Download Linkhttp://www.dcmembers.../download/textworx/#
Documentationhttp://www.dcmembers...tes/32/help/textworx
System RequirementsTested on Windows 7
Author bgmCoder --> http://www.dcmembers.com/bgmcoder/about/

Description
There are many text editors out there, and not all of them have the text-manipulation functions that you always want or need.  TextWorx is designed to give you a slew of text-manipulation functions at your disposal for whatever text editor you wish to work with.  It has a universal context menu and custom toolbar/s that you open with a hotkey.  First select your text, then call the menu, then the function that you wish to run against that text.

I've longed to share it for a very long time and have been working on and off with it for over 8 years.
Take a look at the online help (although it comes with the same help as a local chm file); there are screenshots, credits and version history there.

Default Global hotkeys (but you can customize them)
win+K to show the menu
win+shift+K to toggle the toolbar

After you have the menu open (or when you push a toolbar button):
  • hold shift to reverse the effect (in many cases)
  • hold control to work the effect on each line in the selection
  • hold control+shift to do both
.

For example, if you want to encase a word in double-quotes, just select the text, then select the function from the menu.
  • To remove double-quotes, hold shift when you select the function.
  • To encase each line in double-quotes, hold control when you select the function.
  • To remove double-quotes from each line, hold control+shift when you select the function.

Features
Universal context menu for text editors. 
  • Use either Menu or Toolbar - both are completely customizable
  • Over 150 commands - many are unique to TextWorx
  • Completely customizable global hotkeys for Menu, Toolbar and for ANY Command
  • Modify single words, or multiple lines.
  • Easily comment and uncomment code.
  • Quickly create html ordered/unordered lists and inserting html tags.
  • Number and renumber lines (complete with padding and custom number parameters).
  • Sort lines.
  • Insert preset text snippets and characters.
  • Insert the date in multiple fashions.
  • Quickly convert slashes.
  • Toolbar buttons for cut, copy paste using two clipboards
  • Paste as Text, and Send selection to Notepad
  • Search and Replace multiple criteria - example: replace all State abbeviations with their names (and vice versa).
  • Authour takes requests for new commands (the most fun part of it all)


Screenshots
textworx-toolbar.pngNANY 2019: TextWorx - Universal Text Manipulator
TextWorx-encase.gifNANY 2019: TextWorx - Universal Text Manipulator

Usage
Installation
Just extract the contents of the zip file and run the executable.

Using the Application
To use this program, first select some text, then push the hotkey, then select your text-manipulation routine.  The text is transformed and replaced right in your editor.

Uninstallation
Just delete all the files.
« Last Edit: May 16, 2019, 02:44 PM by BGM »

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #1 on: December 28, 2018, 02:14 PM »
Looking forward to seeing more...  :Thmbsup:

smaragdus

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 54
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #2 on: December 29, 2018, 04:22 AM »
This seems very interesting and useful, I am waiting for the download link.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #3 on: December 31, 2018, 11:40 AM »
Agreed, looks quite useful.  Looking forward to it.   :Thmbsup:

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,205
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #4 on: December 31, 2018, 02:52 PM »
This reminds me of Boxer Software's Text Monkey (complete feature list here), and its alternatives, see e.g. the alternativeTo listing.  I particularly liked WOTS Clippy, but both programs are old now, and the author of Clippy has disappeared from the Web.  However, your program has different features than these, despite overlap.

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #5 on: January 01, 2019, 10:07 PM »
Fellas, I'm almost ready for posting a link.  There are a few more things to work out before I do so, but I'll be able to do it this week.

The big thing about this method of text manipulation is that it doesn't have a gui window of it's own.
AND all of the commands in the menu can also be put into a toolbar - you get to pick and choose what commands to put in the toolbar, and you can have multiple toolbars to choose from, all that interact with the text editor.

Wow, I've never seen Text Monkey before!
But after I post mine, I'll be open to requests.

I appreciate your patience!  I'm almost done...

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #6 on: January 03, 2019, 04:59 PM »
Okay, I've uploaded a working version.  I'm still working on it.  Most things work pretty well, but there are a few problems that I still need to iron out.  Also, I'm working on the documentation.

If you want to add another custom toolbar, quit TextWorx and edit the textworx.ini file.  In the [toolbar] section, add 1 to "maxcustom"  - it should be the total number of toolbars.  Then, the ini key name for the toolbar should be something like 101 or 102 depending on how many you have.  I plan to add an options window to the program that will do this for you.  Right now there are a lot of options that can be edited only by changing the ini file; but wait for the documentation.

PasteHyperlink is for editing html.  Copy a url to your clipboard, then select some text that you want to become the link text.  TextWorx will copy text, wrap it in link tags and add the href for you.

For the Open with Notepad items in the tools menu, you have to make sure the full path to your notedpad or text editor is in the ini file.  I'll add an options panel to insert it correctly in the ini file.  But I'm just mentioning it here in case you are wondering and are interested in tinkering.

Yes, the main menu can be customized as well to display favourite commands.  I might make the entire menu customizable, but that will have to come later.  When I get the options panel working, at least you'll be able to add favourites to the main menu.

« Last Edit: January 03, 2019, 11:18 PM by BGM »

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #7 on: January 04, 2019, 09:26 PM »
Version 0.4 can now be had.  Lots of fixes and is working much better now.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,626
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #8 on: January 05, 2019, 05:32 AM »
Hm, after downloading the zip and extracting the files from 1546662571wpdm_TextWorx.zip inside the zip (that is the most recent zip file, though the exe seems to have the same timestamp as from the 1546662547wpdm_TextWorx.zip) I get an errormessage after starting TextWorx.exe:

Screenshot - 5-01-2019 , 12_22_22.png

Trying it out in the forum's editor pane (while typing this message) it wouldn't convert upper/lower/title/sentence case or encase a selection, I'm not sure that's by design? (using Firefox 64.0 (64bit)). The same is the case in Notepad++ (v7.5.9, 32 bit). This is most likely caused by that error.

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #9 on: January 05, 2019, 11:16 AM »
Ath - try again, please.  I uploaded a new version.  I'm still learning how to get around the wordpress thing; maybe I did something wrong there.
For the menu error - wow, that sort of erases half the rest of the menu, and destroys the toolbar.  I'm working on fixing that.
But the case conversion should work now.

My dev config file is full so it has everything; I have to work on the startup version now.  Hold tight, please!  Don't give up on me!

For now, put this in textworx.ini and restart textworx.  It will fix the menu and the toolbar.
[Glyphs]
;Note that you can name the menu anything, but you can't have two menu items with the same spelling (case doesn't count)
;a nice trick to having two menus with the same name is to add an extra space somewhere
maxcustom=20
100=Copyright Symbol|169
101=Registered Trademark (R)|174
102=Trademark (TM)|153
103=separator
104=disc|149
105=Cross|134
106=separator
« Last Edit: January 05, 2019, 11:23 AM by BGM »

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #10 on: January 05, 2019, 01:42 PM »
Version 0.6 is ready.  I fixed all the startup issues. Best to start with a fresh setup this time.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #11 on: January 05, 2019, 08:10 PM »
Looks terrific.  :up:

panzer

  • Participant
  • Joined in 2008
  • *
  • default avatar
  • Posts: 941
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #12 on: January 06, 2019, 02:59 AM »
Looks very useful.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,626
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #13 on: January 06, 2019, 04:39 AM »
try again, please.  I uploaded a new version.
Updated to the latest release just now, and it starts up without issues and works as intended (I guess ;D)
Replacements work like a charm, very useful, especially as I'm working/developing in web browsers for a living, that don't have much smarts in text manipulation (and I sometimes accidentally switch on cAPS lOCK...), where re-typing is the usual way of fixing things.


You might want to package it a bit different before uploading to your (WP) site, there are 5 zipfiles in this TextWorx release-zip, and I had to manually select the latest to extract the files from. A single TextWorx.zip file holding only the latest application-files should suffice, IMHO.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,626
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #14 on: January 06, 2019, 05:20 AM »
I have a feature request:
  • In the Transform menu, could 'Base64 Encode' and 'Base64 Decode' be added? (Should probably be separate entries, as for some purposes a double encoding is used...)

And a few bug-reports:
  • Convert / 'URI encode | decode' : is duplicated on the Transform menu
  • Transform / 'URI encode | decode' : on the same selection does only URI encode, not a decode when a valid % encoding is in the selection
  • Convert / 'Dec to Hex | Hex to Dec' : does only Dec to Hex (20 -> 14 -> E -> <error>), maybe a prefix (#/$/0x) should be added on the Hex result?
  • Hm, it seems all those dual-conversions only do the 'left side' of the conversion, all work in progress, I presume?

And some other findings:
  • 'Sort and Number' / 'Renumber Lines*' and 'Increment Tokens*' : popup view can't be closed/cancelled using <Esc> key
  • Popup views sometimes show (almost) off-screen when the mouse is close to the screen-edge/Windows taskbar (The <Win-K> menu is shown completely on-screen as it should)
  • The SysTray menu has 2 'Exit' entries

This is what I tested so far.

Thanks for a great utility :Thmbsup: :Thmbsup: :Thmbsup:
« Last Edit: January 06, 2019, 05:27 AM by Ath »

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #15 on: January 06, 2019, 09:20 AM »
You might want to package it a bit different before uploading to your (WP) site, there are 5 zipfiles in this TextWorx release-zip, and I had to manually select the latest to extract the files from. A single TextWorx.zip file holding only the latest application-files should suffice, IMHO.

Hmmm...  My zipfile that I upload does not contain any zipfiles.  I think maybe WP is adding the newer one to the old one or something.   I'm still trying to get a handle on this WP stuff.  Maybe I have to remove the package completely in WP?

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #16 on: January 06, 2019, 09:25 AM »
I have a feature request:
  • In the Transform menu, could 'Base64 Encode' and 'Base64 Decode' be added? (Should probably be separate entries, as for some purposes a double encoding is used...)
Oh yes!  That would be fun, too!

And a few bug-reports:
  • Convert / 'URI encode | decode' : is duplicated on the Transform menu
  • Transform / 'URI encode | decode' : on the same selection does only URI encode, not a decode when a valid % encoding is in the selection
  • Convert / 'Dec to Hex | Hex to Dec' : does only Dec to Hex (20 -> 14 -> E -> <error>), maybe a prefix (#/$/0x) should be added on the Hex result?
  • Hm, it seems all those dual-conversions only do the 'left side' of the conversion, all work in progress, I presume?

Yeah, I know some commands are in more than one menu; I actually did that on purpose.
The dual-conversions all work in the version I'm working at the moment - in the beta you have there was an issue detecting the shift modifier.
I'll test the uri encode again.  I think I might have already fixed it.

And some other findings:
  • 'Sort and Number' / 'Renumber Lines*' and 'Increment Tokens*' : popup view can't be closed/cancelled using <Esc> key
  • Popup views sometimes show (almost) off-screen when the mouse is close to the screen-edge/Windows taskbar (The <Win-K> menu is shown completely on-screen as it should)
  • The SysTray menu has 2 'Exit' entries

Ha - it does have two exit entries!  Didn't realize that.
Escape for the panels - yeah, I don't think that works in any of them.  I'll look into adding that.  The cancel button should work, though (but I know how you feel with the escape button).
For where the popups appear - well, I tried to make them appear where the mouse cursor is.  If I attempt to force them on screen I'll have to do some calculations with the edge of the screen...  ugh....




Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,626
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #17 on: January 06, 2019, 10:13 AM »
Maybe I have to remove the package completely in WP?
That's how I release updates on my dcmembers page, delete and add ;)

<Esc> key seems to work as Cancel in the 'Find and Replace*' popup...

What's the trick with shift? Should I hold that down to get the secondary result? That's not quite obvious, aka I've never seen that UX before :-[ (And I didn't see that in the description..., but after re-reading I just found that)
'Reverting' the action based on current selected content is what I'd expected to happen :tellme:

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #18 on: January 06, 2019, 11:09 AM »
So, the idea is for most functions: 
  • without modifiers = normal mode
  • shift = reverse the effect
  • control = work on each line
  • control shift = reverse the effect on each line

Some functions don't have a reverse because it doesn't matter - like the "Reverse" function, or other things that can't be reversed.
Sometimes you may want to work the effect twice, so therefore you have the option of forward again, or to reverse if you like - like the Base64 encoding, for example, where you said sometimes you would need to do it twice. 

So, you hold the modifier keys (shift, or control, or shift+control) when you click on the command - unless you are using a dialogue panel, in which case you hold the modifier key when you click the Accept button.

Okay, I've uploaded a new version.  The modifier keys all work now.  Some of the menu names were wrong before, but I think I've fixed them all.  There were some functions that didn't work on lines or would not reverse because the modifier key wasn't being detected.  This time, I deleted all the former zip files before I added the new one.

Also, you can add favourite items to the main menu by putting this in the textworx.ini file.
I'm working on an options panel to let you choose, but until I get that done, I might give a list of commands in the documentation.
The ini key is the first number on the left of the = sign.  The command is the second number.  maxcustom is the number of commands to be shown in the menu; the order is set by the number sequence, not by the position of the ini key.

[Menu]
maxcustom=10
100=201
101=307
102=302
103=301
104=separator
105=104
106=901
107=212
108=725
109=403

I still have to add the base64 encode for you, Ath.
« Last Edit: January 06, 2019, 11:30 AM by BGM »

marisaga

  • Supporting Member
  • Joined in 2018
  • **
  • Posts: 5
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #19 on: January 06, 2019, 11:35 AM »
Sounds like THE text editor. Thank you. I'm going to try it right now

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #20 on: January 06, 2019, 01:00 PM »
 :-*

One of those apps that integrate my obsessions. convert, transform and automate. Wonderful. I keep trying.

I observ some modules don't go well for me because I have desactivated the UAC features.
 :Thmbsup:

nickodemos

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 145
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #21 on: January 06, 2019, 05:34 PM »
It is working great in most things I use. I noticed it works well on web chat boxes in a browser.

Is it possible to think about BBCode? Or better an personal INI file to allow people to customize the things they would like?

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #22 on: January 06, 2019, 09:39 PM »
There is some customization possible - not for the submenus, but you can add specific commands to the main menu - I showed how to do that above.  I am working on an options menu that will allow you to do that.  The documentation, as soon as it's all together, will also explain some of this.  There's quite a bit more to it than what appears in the menu.  Right now it's all hidden in the ini settings.

BBC Code, yeah, we can do that, too.  Really, we could do anything; it's just a matter of time spent and understanding what to do to the text.
I'll put BBC Code on my todo list.

In the next update I'll release some fixes to a few things that are not quite working right.  Hold tight!  I appreciate y'all's interest! 

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 563
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #23 on: January 06, 2019, 09:43 PM »
It is working great in most things I use. I noticed it works well on web chat boxes in a browser.

Sometimes, I've found that it misses occasionally.  There are a few timing settings that can be tweaked to accomodate for people's different systems.  If you find that it doesn't set the text correctly, or it replaces the selection with blanks, in the [preferences] section, you can adjust:
  • clipspeed - the length of time to wait for text to appear on the clipboard - adjust this by no more than 1.0 at a time.
  • windelay - the time to wait (in milliseconds) for windows to become active before interacting with them.
  • sendmode - the method used to set the text back to the original window.  4 is default, but there is also 1, 2 and 3.  I think 4 should always work, though.

smaragdus

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 54
    • View Profile
    • Donate to Member
Re: NANY 2019: TextWorx - Universal Text Manipulator
« Reply #24 on: January 07, 2019, 04:17 AM »
@BGM

When I start TextWorx (version 0.7) and try to execute Win+K I get the following error:

Error:  Menu does not exist.

Line#
---> 7584: Menu,%menu_date%,deleteall

The current thread will exit.

Screen:



This happens under Windows 8 x64.

Is there a way to change the default shortcut keys?