![]() |
Forum Index : Microcontroller and PC projects : CMM2: Editor question
Author | Message | ||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
I repeatedly make the same mistake using the editor as follows: F4 to start a selection F4 to cut the selection This takes me back into normal edit mode as expected Then, by mistake I press F4 again instead of F5 and my cut/paste buffer is now empty and I've lost the selected text (same would apply to starting a new selection with SHIFT-ARROW or Ctrl-S Question: Shall I put in an "Are you sure message" in the following conditions? 1: text has been cut rather than copied or deleted and 2: text has never been pasted As soon as the text has been pasted once the condition will be reset and the message won't occur unless the same set of circumstances arises again. |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Would it not be better if F4 didn't pull double-duty ? TBH I wasn't aware that it could be used to "cut", I always use Ctrl-X. I now wonder if the fact that F4 is also cutting might explain some occasional "randomness" that I observe and then dismiss as user error. Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
jirsoft![]() Guru ![]() Joined: 18/09/2020 Location: Czech RepublicPosts: 533 |
I have to say, I'm also using the CTRL-C/CTRL-X and then CTRL-V. So if the F-keys will not work, better for me (I'm sometimes mistakely press F4 because my "finger memory" trying to go back to EDITOR where I already am and I need to press ESC to go out from select mode). Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
yock1960 Senior Member ![]() Joined: 18/08/2020 Location: United StatesPosts: 167 |
I'm also using ctrl keystrokes for this and have a strong dislike of "are you sure" prompts! A few mistakes teach better. Steve |
||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1132 |
Hee hee, I've grumbled to myself more than once about exactly that. Especially when I used F4 and cut the text. My thoughts have been, don't clear the F4 copy buffer until new text is actually selected. Instead, only clear the buffer when right or down arrow is pressed. That way, an erroneous F4 can be cancelled with ESC or maybe just F5, the intended paste. And please, no "Are you sure?" prompts. :-) Edited 2020-11-12 05:00 by vegipete Visit Vegipete's *Mite Library for cool programs. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Thanks for the input. My proposed solution is that if you press F4 with an unpasted buffer you get a warning on the status line "Warning unpasted buffer" If you then press F4 again you are in select mode and the buffer is lost but it gives you pause for thought before you make the mistake. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |