Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-06

Two key sequences little difference (to Delphi)

29 messages · 13 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Max Vlasov

Hi,

I'm not sure this is a big issue, but just curious

I used to two-key sequences like Ctrl-Q-F, Ctrl-K-I, Ctrl-K-U in IDE Classic, but recenly noticed that there's a little difference to Delphi in how they work. It does not respond if one still holds Control when pressing the second key. It is maybe a matter of habit, but for block moving (K-I, K-U) the way when it works in Delphi allowed me to move block quicker (when I held the Control and jump from first to second and back for as long as I need this).

Is this a minor issue that can be fixed easily in Lazarus and worth it or not reporting to matis?

Thanks

Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110616/3a8ebc41/attachment.html>

Reply by email

Mattias Gaertner
to Max Vlasov

?
?

Max Vlasov hat am 16. Juni 2011 um 14:33 geschrieben:

Show quoted text 5 lines
Hi, I'm not sure this is a big issue, but just curious I used to two-key sequences like Ctrl-Q-F, Ctrl-K-I, Ctrl-K-U in IDE Classic,

?
Do you mean Ctrl-Q+Ctrl-F ??
?

Show quoted text 7 lines
but recenly noticed that there's a little difference to Delphi in how they work. It does not respond if one still holds Control when pressing the second key. It is maybe a matter of habit, but for block moving (K-I, K-U) the way when it works in Delphi allowed me to move block quicker (when I held the Control and jump from first to second and back for as long as I need this). Is this a minor issue that can be fixed easily in Lazarus and worth it or not reporting to matis?

Ctrl-Q+F is a different shortcut than Ctrl-Q+Ctrl-F. The IDE only supports two shortcuts per command.

Maybe we should change the shortcuts for classic.

Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110616/0982bd98/attachment.html>

Reply by email

Martin
to Max Vlasov: I'm not sure this is a big issue, but just curious I used to two-key sequences like…
Max Vlasov wrote 14 lines
Hi, I'm not sure this is a big issue, but just curious I used to two-key sequences like Ctrl-Q-F, Ctrl-K-I, Ctrl-K-U in IDE Classic, but recenly noticed that there's a little difference to Delphi in how they work. It does not respond if one still holds Control when pressing the second key. It is maybe a matter of habit, but for block moving (K-I, K-U) the way when it works in Delphi allowed me to move block quicker (when I held the Control and jump from first to second and back for as long as I need this). Is this a minor issue that can be fixed easily in Lazarus and worth it or not reporting to matis?

You can change the keyboard configuration.

For lazarus
ctrl-k I
ctrl-k ctrl-I

Are 2 different sequences.

But each key-map entry supports 2 shortcuts => so assign them both if you want.

Reply by email

Max Vlasov
to Mattias Gaertner: ? ? Max Vlasov hat am 16. Juni 2011 um 14:33 geschrieben: ? Do you mean Ctrl-Q+Ctrl-F ??…

2011/6/16 Mattias Gaertner

Show quoted text 22 lines
Max Vlasov hat am 16. Juni 2011 um 14:33 geschrieben: Hi, I'm not sure this is a big issue, but just curious I used to two-key sequences like Ctrl-Q-F, Ctrl-K-I, Ctrl-K-U in IDE Classic, Do you mean Ctrl-Q+Ctrl-F ?

Sorry if I didn't explain clearly. I meant the sequences when after holding Ctrl one pressed simple letter keys (search, block operations in classic).

My hands are used to doing it this way (example for block moving to right, works in Delphi):

- Press and hold Control
- Press and hold K
- Press I
- Withdraw (Control, K, I) in random order or Press K-I once again.

But in Lazarus works only:

- Press and hold Control
- Press and withdraw K + withdraw Control (in any order)
- Press and withdraw I

The first one allows moving block quicker since I can hold Control for as long as I want and jumping from K to I many times.

Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110616/0599c349/attachment.html>

Reply by email

Mattias Gaertner
to Max Vlasov

?
?

Max Vlasov hat am 16. Juni 2011 um 14:53 geschrieben:

Show quoted text 22 lines
2011/6/16 Mattias Gaertner < [mailto:] > > > ? > ? > > > Max Vlasov < [mailto:] > hat am 16. > Juni 2011 um 14:33 geschrieben: > > > > > Hi, > > > > I'm not sure this is a big issue, but just curious > > > > I used to two-key sequences like Ctrl-Q-F, Ctrl-K-I, Ctrl-K-U in IDE > > Classic,

?

Show quoted text 25 lines
> Do you mean Ctrl-Q+Ctrl-F ?? > > ? > Sorry if I didn't explain clearly. I meant the sequences when after holding Ctrl one pressed simple letter keys (search, block operations in classic). My hands are used to doing it this way (example for block moving to right, works in Delphi): - Press and hold Control - Press and hold K - Press I - Withdraw (Control, K, I) in random order or Press K-I once again. But in Lazarus works only: - Press and hold Control - Press and withdraw K + withdraw Control (in any order) - Press and withdraw I The first one allows moving block quicker since I can hold Control for as long as I want and jumping from K to I many times.

?
So your answer is: Yes.
?
See Martin's and my answers.?
?
Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110616/d85ea1dc/attachment.html>

Reply by email

Max Vlasov
to Mattias Gaertner

2011/6/16 Mattias Gaertner

Show quoted text 51 lines
Max Vlasov hat am 16. Juni 2011 um 14:53 geschrieben: 2011/6/16 Mattias Gaertner Max Vlasov hat am 16. Juni 2011 um 14:33 geschrieben: Hi, I'm not sure this is a big issue, but just curious I used to two-key sequences like Ctrl-Q-F, Ctrl-K-I, Ctrl-K-U in IDE Classic, Do you mean Ctrl-Q+Ctrl-F ? Sorry if I didn't explain clearly. I meant the sequences when after holding Ctrl one pressed simple letter keys (search, block operations in classic). My hands are used to doing it this way (example for block moving to right, works in Delphi): So your answer is: Yes. See Martin's and my answers.

Mattias, thanks,

now I see how it works. The problem came from the fact that my frequently used commands (Find/Indent/Unindent) for some reasons had Ctrl-Key-Key but no corresponding Ctrl-Key, Ctrl-Key sequence by default. No big deal.

Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110616/66403c48/attachment.html>

Reply by email

Mattias Gaertner
to Michael Van Canneyt

?
?

Michael Van Canneyt hat am 16. Juni 2011 um 18:37 geschrieben:

Show quoted text 8 lines
On Thu, 16 Jun 2011, Fl?vio Etrusco wrote: >> >> Maybe we should change the shortcuts for classic. To what then ?

At the moment it is
? ecBlockIndent: Ctrl-K+I
? ecBlockUnindent: Ctrl-K+U

Either
? ecBlockIndent: Ctrl-K+I and Ctrl-K+Ctrl-I
? ecBlockUnindent: Ctrl-K+U and Ctrl-K+Ctrl-U
Or
? ecBlockIndent: Ctrl-K+Ctrl-I and Ctrl+I
? ecBlockUnindent: Ctrl-K+Ctrl-U and Ctrl+U

Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110616/d047e03b/attachment.html>

Reply by email

Mattias Gaertner
to Marco van de Voort
Show quoted text 6 lines
On Thu, Jun 16, 2011 at 06:46:22PM +0200, Mattias Gaertner wrote: > ?? ecBlockIndent: Ctrl-K+I > ?? ecBlockUnindent: Ctrl-K+U <ctrl hold> <k> <ctrl release> <i> is how I use it. Please keep it :-)

I thought so.
I added the Ctrl,Ctrl shortcuts to ecBlockIndent and ecBlockUnindent.

Mattias

Reply by email

Mattias Gaertner
to Mattias Gaertner
Show quoted text 13 lines
On Thu, 16 Jun 2011 19:13:54 +0200 Marco van de Voort wrote: > On Thu, Jun 16, 2011 at 06:46:22PM +0200, Mattias Gaertner wrote: > > ?? ecBlockIndent: Ctrl-K+I > > ?? ecBlockUnindent: Ctrl-K+U > > > <ctrl hold> <k> <ctrl release> <i> is how I use it. Please keep it :-) I thought so. I added the Ctrl,Ctrl shortcuts to ecBlockIndent and ecBlockUnindent.

I fixed the classic key scheme. It had some conflicting keys.

Mattias

Reply by email

Unknown author
to Mattias Gaertner: ? ? Michael Van Canneyt hat am 16. Juni 2011 um 18:37 geschrieben: At the moment it is ?…
Mattias Gaertner wrote 21 lines
? ? Michael Van Canneyt hat am 16. Juni 2011 um 18:37 geschrieben: > > > On Thu, 16 Jun 2011, Fl?vio Etrusco wrote: > > >> > >> Maybe we should change the shortcuts for classic. > > To what then ? At the moment it is ? ecBlockIndent: Ctrl-K+I ? ecBlockUnindent: Ctrl-K+U Either ? ecBlockIndent: Ctrl-K+I and Ctrl-K+Ctrl-I ? ecBlockUnindent: Ctrl-K+U and Ctrl-K+Ctrl-U

Ah. Well, this seems like the only option to me.

Michael.

Reply by email

Alexsander Rosa
to Max Vlasov: I'm not sure this is a big issue, but just curious I used to two-key sequences like…

Former Wordstar user detected... :-)

2011/6/16 Max Vlasov

Show quoted text 21 lines
Hi, I'm not sure this is a big issue, but just curious I used to two-key sequences like Ctrl-Q-F, Ctrl-K-I, Ctrl-K-U in IDE Classic, but recenly noticed that there's a little difference to Delphi in how they work. It does not respond if one still holds Control when pressing the second key. It is maybe a matter of habit, but for block moving (K-I, K-U) the way when it works in Delphi allowed me to move block quicker (when I held the Control and jump from first to second and back for as long as I need this). Is this a minor issue that can be fixed easily in Lazarus and worth it or not reporting to matis? Thanks Max
Atenciosamente, Alexsander da Rosa http://rednaxel.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110616/ad04c4cb/attachment.html>

Reply by email

Hans-Peter Diettrich
to Marco van de Voort: <ctrl hold> <k> <ctrl release> <i> is how I use it. Please keep it :-)
Show quoted text 6 lines
On Thu, Jun 16, 2011 at 06:46:22PM +0200, Mattias Gaertner wrote: > ?? ecBlockIndent: Ctrl-K+I > ?? ecBlockUnindent: Ctrl-K+U <ctrl hold> <k> <ctrl release> <i> is how I use it. Please keep it :-)

IMO this is the real factor that should be adjustable: whether changes in the modifier keys (CTRL, ALT...) should matter or should be ignored, in the remainder of the sequence. I'm used to keep the required modifier pressed for the rest of the sequence.

Of course ignoring changes will limit the number of different key combinations, but this must be acceptable for users with such habits. The default shortcuts should consider that restriction, and not assign essentially different actions to e.g. ^K^I and ^KI. The second choice should remain open for really different shortcuts, like both ^INS and ^C for COPY.

DoDi

Reply by email

Max Vlasov
to Alexsander Rosa: Former Wordstar user detected... :-) 2011/6/16 Max Vlasov Alexsander da Rosa…

2011/6/17 Alexsander Rosa

Former Wordstar user detected... :-)

Rather a long-time borland user :)

Another topic about keys. I'm long-time proponent of using ctrl-alt-arrows for Find Next/Previous Word Occurrence. I had to create expert for this in Delphi, in Lazarus it can be assigned immediately so no questions here. But when I created the expert, I also added a key sequence for copying the word at cursor (used Ctrl-Alt-Insert for this). Currently there's no such command in Lazarus (or at least I did not find when searched in Key Mappings tab). There are already "Select Word" and "Copy", but as long as I see, one can't assign two commands to one key sequence. So can such command be added to the list of available? I don't feel confident about this if I'm the only one who will use it :) but from my delphi experience I can tell that it saves a little every time, and when dozens of identifiers are copied, the saved time can be noticeable.

Thanks

Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/0d70de5a/attachment.html>

Reply by email

Martin
to Max Vlasov
Max Vlasov wrote
a key sequence for copying the word at cursor (used Ctrl-Alt-Insert for this). Currently there's no such command in Lazarus (or at least I did not find when searched in Key Mappings tab).

Something similar: In the editor options (Misc) there is a checkbox "copy word on copy none. With that, if you have no selection Ctrl-C (or whatever you use) will copy a word instead of nothing

Reply by email

Graeme Geldenhuys
to Unknown author: Ah. Well, this seems like the only option to me. Michael.
Show quoted text 11 lines
>> >> To what then ? > At the moment it is > ecBlockIndent: Ctrl-K+I > ecBlockUnindent: Ctrl-K+U > > Either > ecBlockIndent: Ctrl-K+I and Ctrl-K+Ctrl-I > ecBlockUnindent: Ctrl-K+U and Ctrl-K+Ctrl-U Ah. Well, this seems like the only option to me.

Hell, am I the only one that uses Tab (for indentation) and Shift+Tab (for unindent)? Much less keys to type. ;-)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Max Vlasov
to Martin: Something similar: In the editor options (Misc) there is a checkbox "copy word on copy…
Martin wrote 13 lines
On 17/06/2011 08:55, Max Vlasov wrote: > > a key sequence for copying the word at cursor (used Ctrl-Alt-Insert for > this). Currently there's no such command in Lazarus (or at least I did not > find when searched in Key Mappings tab). > Something similar: In the editor options (Misc) there is a checkbox "copy word on copy none. With that, if you have no selection Ctrl-C (or whatever you use) will copy a word instead of nothing

Wonderful, thanks, Martin ! :) It is even on by default, I just never tried to copy anything without selection so never discovered this

On Fri, Jun 17, 2011 at 12:50 PM, Graeme Geldenhuys <

Show quoted text 7 lines
wrote: Hell, am I the only one that uses Tab (for indentation) and Shift+Tab (for unindent)? Much less keys to type. ;-)

It's interesting, I saw this in Notepad++ and liked, but personally also used to using tabs as usual.
But if one thinks, using tabs for tabbing when there's a selection looks like a useless operation, (cmiiw). Maybe there might a mechanism that conditionally makes different things if there's a selection and if there's no. In this case the tab can be used more effectively.

Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/a19303f9/attachment.html>

Reply by email

Martin
to Max Vlasov
Max Vlasov wrote 15 lines
On Fri, Jun 17, 2011 at 12:50 PM, Graeme Geldenhuys < <mailto:>> wrote: Hell, am I the only one that uses Tab (for indentation) and Shift+Tab (for unindent)? Much less keys to type. ;-) It's interesting, I saw this in Notepad++ and liked, but personally also used to using tabs as usual. But if one thinks, using tabs for tabbing when there's a selection looks like a useless operation, (cmiiw). Maybe there might a mechanism that conditionally makes different things if there's a selection and if there's no. In this case the tab can be used more effectively.

That's exactly what Tab does.

if there is a selection....
Again look at the editor options. (don't assign tab to the indent function)

Btw all editoroptions are explained on the wiki, simply press F1 -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/40b82c66/attachment-0001.html>

Reply by email

Graeme Geldenhuys
to Max Vlasov: Wonderful, thanks, Martin ! :) It is even on by default, I just never tried to copy…
Max Vlasov wrote
conditionally makes different things if there's a selection and if there's no. In this case the tab can be used more effectively.

There are many things in Lazarus IDE that behaves different based on the fact if text is selected or not. Code Templates & Synro Edit both via Ctrl+J is another example of this.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Max Vlasov
to Martin: That's exactly what Tab does. if there is a selection.... Again look at the editor…

2011/6/17 Martin

Show quoted text 22 lines
On 17/06/2011 10:04, Max Vlasov wrote: On Fri, Jun 17, 2011 at 12:50 PM, Graeme Geldenhuys < > wrote: > > Hell, am I the only one that uses Tab (for indentation) and Shift+Tab > (for unindent)? Much less keys to type. ;-) > > It's interesting, I saw this in Notepad++ and liked, but personally also used to using tabs as usual. That's exactly what Tab does. if there is a selection.... Again look at the editor options. (don't assign tab to the indent function) Btw all editoroptions are explained on the wiki, simply press F1

I see, I should have noticed :) thanks

Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/96acbcef/attachment.html>

Reply by email

Sven Barth
to Graeme Geldenhuys: Hell, am I the only one that uses Tab (for indentation) and Shift+Tab (for unindent)? …
Graeme Geldenhuys wrote 16 lines
On 16/06/2011 20:35, wrote: >>> >>> To what then ? >> At the moment it is >> ecBlockIndent: Ctrl-K+I >> ecBlockUnindent: Ctrl-K+U >> >> Either >> ecBlockIndent: Ctrl-K+I and Ctrl-K+Ctrl-I >> ecBlockUnindent: Ctrl-K+U and Ctrl-K+Ctrl-U > > Ah. Well, this seems like the only option to me. Hell, am I the only one that uses Tab (for indentation) and Shift+Tab (for unindent)? Much less keys to type. ;-)

Seems so... I prefer Ctrl+I (indent) and Ctrl+U (unindent) ^^

Regards,
Sven

Reply by email

Martin
to Sven Barth
Sven Barth wrote 6 lines
Am 17.06.2011 10:50, schrieb Graeme Geldenhuys: > > Hell, am I the only one that uses Tab (for indentation) and Shift+Tab > (for unindent)? Much less keys to type. ;-) Seems so... I prefer Ctrl+I (indent) and Ctrl+U (unindent) ^^

No, he is not the only one.
But Graeme addressed "hell" with his question, So I did not feel obliged to answer....

Reply by email

Graeme Geldenhuys
to Sven Barth: Seems so... I prefer Ctrl+I (indent) and Ctrl+U (unindent) ^^ Sven
Sven Barth wrote
Seems so... I prefer Ctrl+I (indent) and Ctrl+U (unindent) ^^

:-) How strange. I thought the Tab key for indentation was quite popular, seeing that many editors support it.

Then again, comparing my keyboard shortcuts to anybody else is probably not a good idea. I use the Dvorak (before that Programmer Dvorak) keyboard layout (with Caps Lock remapped to Backspace), so many "standard" key combinations makes no sense in Dvorak. eg: Ctrl+C is a two-hand shortcut under Dvork, but one-handed under Qwerty. For Cut/Copy/Paste, I use the old CUI key combo standard.

From memory, I believe the Ctrl+I and Ctrl+U is what Delphi IDE uses.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Sven Barth
to Graeme Geldenhuys: :-) How strange. I thought the Tab key for indentation was quite popular, seeing that…
Graeme Geldenhuys wrote 13 lines
On 17/06/2011 11:31, Sven Barth wrote: > > Seems so... I prefer Ctrl+I (indent) and Ctrl+U (unindent) ^^ :-) How strange. I thought the Tab key for indentation was quite popular, seeing that many editors support it. Then again, comparing my keyboard shortcuts to anybody else is probably not a good idea. I use the Dvorak (before that Programmer Dvorak) keyboard layout (with Caps Lock remapped to Backspace), so many "standard" key combinations makes no sense in Dvorak. eg: Ctrl+C is a two-hand shortcut under Dvork, but one-handed under Qwerty. For Cut/Copy/Paste, I use the old CUI key combo standard.

I use NEO instead of Qwertz ( http://www.neo-layout.org/ ). There "u" is located on "a" and "i" on "s" so it's a rather nice combination to use :)

> From memory, I believe the Ctrl+I and Ctrl+U is what Delphi IDE uses.

No... Delphi needs you to press Shift as well. And I always stumple with that when I switch from Lazarus to Delphi at work ^^

Regards,
Sven

Reply by email

Žilvinas Ledas
to Graeme Geldenhuys: :-) How strange. I thought the Tab key for indentation was quite popular, seeing that…
Graeme Geldenhuys wrote
On 17/06/2011 11:31, Sven Barth wrote: > Seems so... I prefer Ctrl+I (indent) and Ctrl+U (unindent) ^^ :-) How strange. I thought the Tab key for indentation was quite popular, seeing that many editors support it.

I prefere Tab/Shoft+Tab combination as well as most of the editors have this one (at least MonoDevelop, VisualStudio, NetBeans, Eclipse).

Regards,
?ilvinas

Reply by email