Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
What's that? Did I hear someone wanted find & replace implemented?

Edit: The update has been accepted to the archives!

Well even if not, I implemented it anyways! Update v1.1.0 is out, and here's what it includes:
-find&replace feature
--text boxes can be used just as easily as the editor, includes special characters, deletion, etc and [enter] characters are displayed here as the xbar symbol.

-compression on/off option
--if you know Str6 won't be tampered with, there's no need to have compression on
--if Str6 was tampered with, and compression is off and the program has trouble starting, then the next time the program is run, it will turn compression back on and try to load the last save.

-auto-saving is set to a permanent interval of every 20 edits
—this can still be manually changed by editing the 3rd element of LBNER

Fancy find&replace screenie:
That interface looks awesome! Is there a reason that "replace" is "Rplace" in the "Func" menu? I assume it is to save horizontal space, but it looks a little weird Wink

I don't know if you saw my IRC message, but (using the data -> .8xs script I wrote) I added auto downloading to Txt2Note in my PR.

All you really have to do is enter the escape sequences for the bytes of each character that is in the "dictionary" that isn't in the lookupTable look up table already (I added some of the tokens myself). You can find the bytes on TIBD.
_iPhoenix_ wrote:
That interface looks awesome! Is there a reason that "replace" is "Rplace" in the "Func" menu? I assume it is to save horizontal space, but it looks a little weird Wink

Yes, it is because I could not fit the entire word in that horizontal space. What might you suggest instead?

_iPhoenix_ wrote:
I don't know if you saw my IRC message, but (using the data -> .8xs script I wrote) I added auto downloading to Txt2Note in my PR.

All you really have to do is enter the escape sequences for the bytes of each character that is in the "dictionary" that isn't in the lookupTable look up table already (I added some of the tokens myself). You can find the bytes on TIBD.

Ok, awesome! I accepted the PR but the site isn't quite operational yet. I will try to get it working here soon.
Remember, if you find a bug, be sure to report it here! I am compiling a list and will likely miss some if you don't tell me.

+I've recently fixed the find & replace routine. If your replacement string contains stuff that's in your find string, it no longer goes on an infinite loop. For example, want to put the letter "A" at the beginning of each new line in your note? You would need to replace "x̄" (x̄ pops up in the text box when you hit enter) with "x̄A".

+I've also fixed a bug where the cursor doesn't show up in the right spot in the text box after using special characters.

EDIT:
+fixed a bug where program would crash because it incorrectly dealt with the line break character (x̄) in the text box

+fixed a bug where token and token width dictionaries weren't initialized at proper spot

Other bug fixes and optimizations are coming soon in v1.1.1.
Another update, v1.1.2 is out.

This update fixes several bugs and has some minor graphical improvements.

+The "OK" button in find&replace is green now when you are on it. However if either of your two text boxes are empty, the button will be red. Clicking it while red will simply take you back to the editor.

+Optimized find&replace routine

+Improved deletion rendering in text boxes

+Fixed bug where cursor wasn't updated in text box because of text scrolling

+Fixed bug in editor where cursor wouldn't update after pasting the clipboard

+Fixed bug where string2note calculation algorithm couldn't handle two line breaks next to each other.

In addition, you should know that .txt to Note is still on its way, I just need some more time.
BasicNote has reached over 500 downloads! Thank you all for checking it out and be sure to leave a review if you like.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 4 of 4
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement