Page 1 of 1
An old suggestion that imho should be considered as a bug
Posted: Wed Feb 17, 2016 4:01 pm
by ssb
Please Fred,
Do us the favor and enable the CTRL-L shortcut (delete current line) in PB IDE. It is a standard key combination in Scintilla and a function found on every editor ever released.
Thanks
Re: An old suggestion that imho should be considered as a bu
Posted: Wed Feb 17, 2016 4:18 pm
by infratec
Hi,
in all editors which I use it's CTRL+Y
Re: An old suggestion that imho should be considered as a bu
Posted: Wed Feb 17, 2016 4:21 pm
by mhs
In Notepad++ it's CTRL+L
Re: An old suggestion that imho should be considered as a bu
Posted: Wed Feb 17, 2016 4:34 pm
by skywalk
You are a programmer? Purebasic offers Tool code and Preferences for this very purpose.
Write your Tool and assign it to [Ctrl+l] and in Preferences.
I use the more logical combinations of [Ctrl+d] =
Duplicate, and [Ctrl+Shift+d] =
Delete.
[Ctrl-l] =
Last location or history.
There are many other editing elements that are not available to the user(via Tool code) that should take priority over this.

Re: An old suggestion that imho should be considered as a bu
Posted: Wed Feb 17, 2016 4:44 pm
by Fred
Not a bug
Re: An old suggestion that imho should be considered as a bu
Posted: Wed Feb 17, 2016 5:12 pm
by kenmo
Skywalk, of course we can write IDE tools to extend Scintilla functionality. I do this, for example for SCI_MOVESELECTEDLINESUP, SCI_MOVESELECTEDLINESDOWN, SCI_SETEDGEMODE, and I appreciate that the IDE has this capability.
But it's fine to request adding SCI_LINEDELETE (and others) to the dozens of simple Scintilla commands already mappable within the IDE.
The current method... Doesn't it seem like overkill to write a custom program, build and store it somewhere, add an IDE Tool entry, and launch an external executable every time the shortcut is pressed -- all to send a SCI_LINEDELETE message back to the IDE you're in? (Wouldn't that be silly for SCI_GOTOLINE, or SCI_COPY/PASTE, etc?)
Disclaimer: I've asked for the same thing before
http://www.purebasic.fr/english/viewtop ... =3&t=52122
Related comment: Notepad++'s Ctrl-L shortcut is actually SCI_LINECUT, not SCI_LINEDELETE, meaning it writes the deleted line to your clipboard!
An old suggestion that imho should be considered as a bug
Posted: Wed Feb 17, 2016 6:07 pm
by ssb
skywalk wrote:You are a programmer? Purebasic offers Tool code and Preferences for this very purpose.
I'm also a mechanic; Should I build a steering wheel for the brand new car I bought and didn't had one?
Re: An old suggestion that imho should be considered as a bu
Posted: Wed Feb 17, 2016 7:09 pm
by skywalk
I thought I was being helpful? There is a clear way to make your request work. There is no way for others like "reverse search" or "search in Procedures Only" or whatever I can think of. I am merely stating this is certainly NOT a bug and is a Feature Request. But a Feature Request that already has a solution. Nothing personal, I just prefer the many unsupported Feature Requests get a higher priority. Happy days when Fred/freak have time to implement all our requests.