|
Forum Index : Microcontroller and PC projects : Editor enhancements in PicoMite 6.01.00RC21
| Author | Message | ||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10653 |
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: GermanyPosts: 1687 |
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. 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: AustraliaPosts: 2841 |
Thanks Peter, had a play and it is very useful. |
||||
| Peter63 Senior Member Joined: 28/07/2017 Location: SwedenPosts: 108 |
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: AustriaPosts: 295 |
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 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |