Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:15 01 Aug 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 : CMM2: Editor question

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 11:16am 11 Nov 2020
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 4311
Posted: 11:48am 11 Nov 2020
Copy link to clipboard 
Print this post

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 Republic
Posts: 533
Posted: 12:22pm 11 Nov 2020
Copy link to clipboard 
Print this post

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 States
Posts: 167
Posted: 02:38pm 11 Nov 2020
Copy link to clipboard 
Print this post

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: Canada
Posts: 1132
Posted: 06:59pm 11 Nov 2020
Copy link to clipboard 
Print this post

  matherp said  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


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 Kingdom
Posts: 10310
Posted: 07:24pm 11 Nov 2020
Copy link to clipboard 
Print this post

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.
 
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