Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:14 28 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Editor enhancements in PicoMite 6.01.00RC21

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10653
Posted: 10:43am 27 Nov 2025
Copy link to clipboard 
Print this post

Thought I'd do a separate post on this as it might make the new version attractive to some.

The in-built editor is very useful and personally I use it most of the time rather than using a PC based approach. Two things have always irritated me though: first, having to use shift-F3 to repeat a search and second, no replace function. I was musing on this in bed as you do (sad I know ) when I realised that with a particular approach it should be easy to implement replace functionality without risking the stability of the editor so RC21  contains the editor enhancements as follows:

You can now use SHIFT-F3, ctrl-G, OR F6 to get the next match

If you then use SHIFT-F5, ctrl-I, or F8 the system will replace the search target string with the contents of the paste buffer.

That works but requires you to have copied something into the paste buffer using the usual F4/F5 mechanism

So, having just done a search using F3 etc. you can now press SHIFT-F4, ctrl-F, or F7 and this will open a dialog allowing you to directly enter a string into the paste buffer and on pressing return, replace the search target string.

This is much simpler than that explanation made it seem.

Suppose you want to replace every occurrence of GP0 with GP6 then you can proceed as follows:
F3 - enter GP0 'define the search target and find the first occurrence
F7 - enter GP6 'define the replacement string and do the first replacement
repeat until you get a not found message
 F6 ' find next
 F8 ' replace next
end repeat
Edited 2025-11-27 20:44 by matherp
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1687
Posted: 11:17am 27 Nov 2025
Copy link to clipboard 
Print this post

Hi Peter,
this is a huge improvement I've been waiting for. Thanks!

I'm thinking: I could eliminate/omit the Replace function in File Manager.

  matherp said  I was musing on this in bed as you do (sad I know) ...


I've been doing this for years; it's the best way to get new ideas and approaches. The time between worlds ...(Hypnagogia (I didn't know there was a word for it))

Regards
Michael
Edited 2025-11-27 21:22 by twofingers
causality ≠ correlation ≠ coincidence
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2841
Posted: 12:11pm 27 Nov 2025
Copy link to clipboard 
Print this post

Thanks Peter, had a play and it is very useful.
 
Peter63
Senior Member

Joined: 28/07/2017
Location: Sweden
Posts: 108
Posted: 01:33pm 27 Nov 2025
Copy link to clipboard 
Print this post

Hello Peter,
Good and useful feature   .
I usually use the built-in editor directly, using MM Edit for larger sections of code.
Towards Christmas and New Year's, there will be a bit more programming on my part.

/Peter63
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 295
Posted: 08:41pm 27 Nov 2025
Copy link to clipboard 
Print this post

Thanks Peter,

another improvement to an already very capable interpreter.

How about an F-key to enter a line number to jump to in the MMBasic editor. The line number will come from MMEdit or another external editor. I use this to do small changes mostly for debugging directly in the editor thus shortening the turnaround time compared to MMEdit changes and MMCC upload. And yes, i have prograns with 500+ lines in mind. I always seem to end up with such beasts ...

Gderald
                                                                 
73 de OE1HGA, Gerald
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025