An old suggestion that imho should be considered as a bug

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
ssb
User
User
Posts: 44
Joined: Wed Jun 21, 2006 11:09 am

An old suggestion that imho should be considered as a bug

Post 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
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: An old suggestion that imho should be considered as a bu

Post by infratec »

Hi,

in all editors which I use it's CTRL+Y
User avatar
mhs
Enthusiast
Enthusiast
Posts: 101
Joined: Thu Jul 02, 2015 4:53 pm
Location: Germany
Contact:

Re: An old suggestion that imho should be considered as a bu

Post by mhs »

In Notepad++ it's CTRL+L
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: An old suggestion that imho should be considered as a bu

Post 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. :wink:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: An old suggestion that imho should be considered as a bu

Post by Fred »

Not a bug
User avatar
kenmo
Addict
Addict
Posts: 2033
Joined: Tue Dec 23, 2003 3:54 am

Re: An old suggestion that imho should be considered as a bu

Post 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!
ssb
User
User
Posts: 44
Joined: Wed Jun 21, 2006 11:09 am

An old suggestion that imho should be considered as a bug

Post 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?
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: An old suggestion that imho should be considered as a bu

Post 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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Post Reply