Sign in Join

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

Mailing lists / lazarus / 2010-05

Code navigation

11 messages · 8 people · –

Reply by email Subscribe to this list Your subscription

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

Leonardo M. Ramé

Hi, does anyone knows if the editor has those arrows (light blue if i remember correctly) that has Delphi to let you go back and forth to editing points?.

Example: ctrl+click on a unit name, then ctrl + click on a method and so on. The left arrow in delphi allows you to go back to the last editting point before the Ctrl+click.

If Lazarus's editor doesn't have this feature it could be nice to add it.

Leonardo M. Ram? Griensu S.A. - Medical IT C?rdoba Tel.: 0351-4247979

Reply by email

Martin
to Leonardo M. Ramé
Leonardo M. Ram? wrote 11 lines
Hi, does anyone knows if the editor has those arrows (light blue if i remember correctly) that has Delphi to let you go back and forth to editing points?. Example: ctrl+click on a unit name, then ctrl + click on a method and so on. The left arrow in delphi allows you to go back to the last editting point before the Ctrl+click. If Lazarus's editor doesn't have this feature it could be nice to add it.

It doesn't have the 2 buttons (as you ay have seen), but it has alternate ways to provide the functionality.

1) by keyboard: (you can assign all key-commands to your own preferred keys):

alt-cursor up : jump to declaration
ctrl - h : jump back
ctrl-shift- h: jump forward

2) by mouse
ctrl-click to jump to declaration

4th and 5th mouse button to jump forward/backward
(if you want to change this, let me know what you want to change it to, it's possible, but tricky => see advanced mouse setting, help on wiki)

Martin

Reply by email

Mattias Gaertner
to Leonardo M. Ramé: Hi, does anyone knows if the editor has those arrows (light blue if i remember correctly)…
Hi, does anyone knows if the editor has those arrows (light blue if i remember correctly) that has Delphi to let you go back and forth to editing points?.

No.

Example: ctrl+click on a unit name, then ctrl + click on a method and so on. The left arrow in delphi allows you to go back to the last editting point before the Ctrl+click.

Ctrl+h jumps back, Ctrl+Shift+h jump forwards.

If Lazarus's editor doesn't have this feature it could be nice to add it.

Feel free to provide a patch to provide such buttons.

Mattias

Reply by email

Hans-Peter Diettrich
to Leonardo M. Ramé: Hi, does anyone knows if the editor has those arrows (light blue if i remember correctly)…
Show quoted text 10 lines
Hi, does anyone knows if the editor has those arrows (light blue if i remember correctly) that has Delphi to let you go back and forth to editing points?. Example: ctrl+click on a unit name, then ctrl + click on a method and so on. The left arrow in delphi allows you to go back to the last editting point before the Ctrl+click. If Lazarus's editor doesn't have this feature it could be nice to add it.

It depends on the available space in the GUI. I've placed such arrows into the status bar, just below the gutter.

The navigation keyboard shortcuts are Alt-Left/Right in Delphi, Ctrl-H and Ctrl-Shift-H in Lazarus. Dunno why, perhaps some platforms don't like Alt shortcuts?

DoDi

Reply by email

Graeme Geldenhuys
to Leonardo M. Ramé: Hi, does anyone knows if the editor has those arrows (light blue if i remember correctly)…

2010/5/1 Leonardo M. :

If Lazarus's editor doesn't have this feature it could be nice to add it.

Lazarus doesn't have it, but it is still possible with "Editor Toolbar" (included with Lazarus) package. Editor toolbar allows you to add most of the IDE menu items into the toolbar. With this simply add Jump Back/Forward menu items to the editor toolbar. See attached image for how my IDE looks.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-1.png Type: image/png Size: 6099 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100502/70ee10d2/attachment.png>

Reply by email

Marc Weustink
to Hans-Peter Diettrich: It depends on the available space in the GUI. I've placed such arrows into the status…
Hans-Peter Diettrich wrote 18 lines
Leonardo M. Ram? schrieb: > Hi, does anyone knows if the editor has those arrows (light blue if i > remember correctly) that has Delphi to let you go back and forth to > editing points?. > > Example: ctrl+click on a unit name, then ctrl + click on a method and so > on. The left arrow in delphi allows you to go back to the last editting > point before the Ctrl+click. > > If Lazarus's editor doesn't have this feature it could be nice to add > it. It depends on the available space in the GUI. I've placed such arrows into the status bar, just below the gutter. The navigation keyboard shortcuts are Alt-Left/Right in Delphi, Ctrl-H and Ctrl-Shift-H in Lazarus. Dunno why, perhaps some platforms don't like Alt shortcuts?

I guess it was unknown that delphi had those shortcuts. At least I didnt', found out today.
Thank you, it was one of those things I missed in delphi (or was it introduced in D7 ?)

Marc

Reply by email

Leonardo M. Ramé
to Graeme Geldenhuys: 2010/5/1 Leonardo M. : Lazarus doesn't have it, but it is still possible with "Editor…

El dom, 02-05-2010 a las 10:31 +0200, Graeme Geldenhuys escribi?:

Show quoted text 12 lines
2010/5/1 Leonardo M. : > > If Lazarus's editor doesn't have this feature it could be nice to add > it. Lazarus doesn't have it, but it is still possible with "Editor Toolbar" (included with Lazarus) package. Editor toolbar allows you to add most of the IDE menu items into the toolbar. With this simply add Jump Back/Forward menu items to the editor toolbar. See attached image for how my IDE looks.

Thanks to all of you, I didn't know the shortcuts. After Hans mentioned them, I found them in the Search menu, then adding to the Editor Toolbar was easy.

Leonardo M. Ram? Griensu S.A. - Medical IT C?rdoba Tel.: 0351-4247979

Reply by email

Lee Jenkins
to Graeme Geldenhuys: 2010/5/1 Leonardo M. : Lazarus doesn't have it, but it is still possible with "Editor…
Graeme Geldenhuys wrote 10 lines
2010/5/1 Leonardo M. : > If Lazarus's editor doesn't have this feature it could be nice to add > it. Lazarus doesn't have it, but it is still possible with "Editor Toolbar" (included with Lazarus) package. Editor toolbar allows you to add most of the IDE menu items into the toolbar. With this simply add Jump Back/Forward menu items to the editor toolbar. See attached image for how my IDE looks.

How do you get it to work? What spell or incantation is necessary? :-)

I've tried to use it several times and all it does it put buttons on the status bar with a lightning icon that do nothing when pressed. Lazarus 0.9.29 rev 23574.

See attached.

Warm Regards, Lee -------------- next part -------------- A non-text attachment was scrubbed... Name: no_statusbar_work.png Type: image/png Size: 15354 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100502/f4b0f67f/attachment.png>

Reply by email

Graeme Geldenhuys
to Lee Jenkins

2010/5/2 Lee Jenkins :

How do you get it to work? ?What spell or incantation is necessary? :-)

* Compile the editortoolbar.lpk (found in components/editortoolbar/)
* By default it comes with a "configure" button and a hard-coded "jump to" navigation button.
* Click configure and browse the "IDEMainMenu" tree node. Most menu actions seem to work, but there are a few that doesn't - no idea why yet.

As a test, try and add something that is known to work,
- IDEMainMenu > Edit > itmEditClipboard > Copy | Paste | Cut
- IDEMainMenu > Run > itmRunBuilding > Run | Build | Build All
- IDEMainMenu > Search > Jumpings > Jump Back | Jump Forward etc..

If a item appears with a lightning bolt icon, it means the IDE menu item did not have an icon, so the editor toolbar adds a generic icon (so it's visible to the end-user).

I still need to investigate why some IDE actions do not work. For example, creating shortcuts to the various Debug windows (Watch window, Backtrace etc) don't work from the editor toolbar.

I've tried to use it several times and all it does it put buttons on the status bar with a lightning icon that do nothing when pressed.

What IDE actions (exact tree shown in Configure Editor Toolbar dialog) did you try and add, that doesn't work?

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gaertner
to Marc Weustink: I guess it was unknown that delphi had those shortcuts. At least I didnt', found out…
Show quoted text 22 lines
Hans-Peter Diettrich wrote: > Leonardo M. Ram? schrieb: >> Hi, does anyone knows if the editor has those arrows (light blue if i >> remember correctly) that has Delphi to let you go back and forth to >> editing points?. >> >> Example: ctrl+click on a unit name, then ctrl + click on a method and so >> on. The left arrow in delphi allows you to go back to the last editting >> point before the Ctrl+click. >> >> If Lazarus's editor doesn't have this feature it could be nice to add >> it. > > It depends on the available space in the GUI. I've placed such arrows > into the status bar, just below the gutter. > > The navigation keyboard shortcuts are Alt-Left/Right in Delphi, Ctrl-H > and Ctrl-Shift-H in Lazarus. Dunno why, perhaps some platforms don't > like Alt shortcuts? I guess it was unknown that delphi had those shortcuts. At least I didnt', found out today.

Me2

Thank you, it was one of those things I missed in delphi (or was it introduced in D7 ?)

Maybe we should change the defaults shortcuts in Lazarus?

Mattias

Reply by email

Joost van der Sluis
to Mattias Gaertner
Mattias Gaertner wrote 32 lines
On Sun, 02 May 2010 12:20:49 +0200 Marc Weustink wrote: > Hans-Peter Diettrich wrote: > > Leonardo M. Ram? schrieb: > >> Hi, does anyone knows if the editor has those arrows (light blue if i > >> remember correctly) that has Delphi to let you go back and forth to > >> editing points?. > >> > >> Example: ctrl+click on a unit name, then ctrl + click on a method and so > >> on. The left arrow in delphi allows you to go back to the last editting > >> point before the Ctrl+click. > >> > >> If Lazarus's editor doesn't have this feature it could be nice to add > >> it. > > > > It depends on the available space in the GUI. I've placed such arrows > > into the status bar, just below the gutter. > > > > The navigation keyboard shortcuts are Alt-Left/Right in Delphi, Ctrl-H > > and Ctrl-Shift-H in Lazarus. Dunno why, perhaps some platforms don't > > like Alt shortcuts? > > I guess it was unknown that delphi had those shortcuts. > At least I didnt', found out today. Me2 > Thank you, it was one of those things I missed in delphi > (or was it introduced in D7 ?) Maybe we should change the defaults shortcuts in Lazarus?

No, I like ctrl-h. And this was the default in Delphi also but since VS used alt-arrow they changed it to that.

And ctrl-h (Lazarus) and alt-arrow (Delphi) are not completely the same. Lazarus'version is better. It always works, for every jump the cursos makes. In Delphi it only works in some cases.

Joost.

Reply by email