CTRL-BACKSPACE as a delete

Posted by damccull on Sun 25 Feb 2018 05:17 PM — 6 posts, 26,950 views.

USA #0
I was literally thinking just this: http://www.gammon.com.au/forum/?id=10819

I want to see an option to change the CTRL-BACKSPACE key combination to work as 'delete the word prior to my cursor' for those of us who are used to that in EVERY other application we use. Doesn't even have to be on by default. Just want the option I can enable. :)
Australia Forum Administrator #1
Good idea. I have added that to the pre-release version.

Please try the latest pre-release version of MUSHclient. See the link below for how to obtain it.

http://www.gammon.com.au/forum/?id=13903

Once you have copied that (MUSHclient.exe) on top of the existing executable, start it up, press Ctrl+I to enter the "Immediate" scripting window, and copy/paste this:


SetOption ("ctrl_backspace_deletes_last_word", true)


Save your world file to keep this change.

Now Ctrl+Backspace should delete the last entered word (prior to the cursor, not necessarily at the end of the line).
Amended on Tue 27 Feb 2018 06:25 AM by Nick Gammon
USA #2
Thanks! This seems to work great! Can't wait to see it in the world defaults section, too! If I run into any issues with it, I'll let you know.
Australia Forum Administrator #3
As I explained in another post, I am very reluctant to change the resources file.

However you could make a global plugin that sets the options up the way you want them.
#4
That is not working for me. When I download the "pre-release" version of the client (I have 5.05 right now), I get an error of "mushclient_prefs.sqlite" being read-only.

And if I paste that string on the "Immediate" scripting window, and click either 'run' or 'close', nothing happens, even if I save the world, close it, and open it again.
Australia Forum Administrator #5
Move your installation to a folder that can be written to. This is not a fault of the code, per se.