Sign in Join

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

Mailing lists / lazarus / 2008-11

How to unset bookmarks in the editor?

38 messages · 11 people · –

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

I've set two bookmarks using Ctrl+1 and Ctrl+2 (luckily only two). :-) But now for the life of me I can't unset them! In Delphi I can simply press Ctrl+1 again while I'm on the (1) bookmark and it will toggle (set/unset) the bookmark. But Lazarus clearly doesn't do that
- toggle bookmarks.

I even tried to restart the Lazarus IDE, but those bookmarks are very persistent buggers!! They are still there. :-(

I also tried the "Search | Set a free bookmark" though to be honest I have no idea what that menu item is supposed to do - but from the description, I thought it might work but it didn't. If it was supposed to work, it's a very weird method of doing so, I much prefer the Delphi way.

I take it bookmarks are not used by anybody, otherwise somebody would have detected the same issues as I now have. Is the Ctrl+<number> a toggle feature like Delphi and it's just broken in Lazarus, or does Lazarus IDE work fundamentally different?

Regards,
- Graeme -

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

Reply by email

Henry Vermaak
to Graeme Geldenhuys

2008/11/25 Graeme Geldenhuys :

Show quoted text 7 lines
Hi, I've set two bookmarks using Ctrl+1 and Ctrl+2 (luckily only two). :-) But now for the life of me I can't unset them! In Delphi I can simply press Ctrl+1 again while I'm on the (1) bookmark and it will toggle (set/unset) the bookmark. But Lazarus clearly doesn't do that - toggle bookmarks.

which delphi are you using? i can vaguely recall that you can't unset them in delphi 7, but i may be mistaken.

henry

Reply by email

Hans-Peter Diettrich
to Graeme Geldenhuys: I've set two bookmarks using Ctrl+1 and Ctrl+2 (luckily only two). :-) But now for the…
Show quoted text 5 lines
I also tried the "Search | Set a free bookmark" though to be honest I have no idea what that menu item is supposed to do - but from the description, I thought it might work but it didn't. If it was supposed to work, it's a very weird method of doing so, I much prefer the Delphi way.

Can't you move the bookmarks to an empty line, so that they become obviously unassigned?

I see no special advantage in removing bookmarks. In detail not when Delphi doesn't remember bookmarks across sessions :-(

DoDi

Reply by email

Graeme Geldenhuys
to Henry Vermaak: 2008/11/25 Graeme Geldenhuys : which delphi are you using? i can vaguely recall that you…
Henry Vermaak wrote
which delphi are you using? i can vaguely recall that you can't unset them in delphi 7, but i may be mistaken.

Yup, you are mistaken. ;-) I'm using Delphi 7. I can set *and* unset them with Ctrl+<number>.

I can also unset them by right clicking the editor and selecting "Toggle Bookmarks" and selecting whatever bookmark*.

* Set bookmarks are clearly shown with a check mark in the popup menu. I can unset any of the checked bookmarks without having to go to that bookmark first. I simply select (uncheck) the bookmark via the "Toggle Bookmarks" popup menu.

Regards,
- Graeme -

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

Reply by email

Marc Weustink
to Graeme Geldenhuys: I've set two bookmarks using Ctrl+1 and Ctrl+2 (luckily only two). :-) But now for the…
Graeme Geldenhuys wrote
Hi,

[..]

I take it bookmarks are not used by anybody, otherwise somebody would have detected the same issues as I now have.

I don't call it an issue. If I don't need a bookmark, I don't use it :) So it doesn't bother me that it is somewhere assigned. When I need it at another place, I jsut press ctrl+1 to set it there

Is the Ctrl+<number> a toggle feature like Delphi and it's just broken in Lazarus, or does Lazarus IDE work fundamentally different?

It has never been a toggle, but I can see a use for it. If you search the mailinglist, you will find an earlier discussion about this. (don't remember the outcome)

Marc

Reply by email

Henry Vermaak
to Graeme Geldenhuys: Yup, you are mistaken. ;-) I'm using Delphi 7. I can set *and* unset them with…

2008/11/25 Graeme Geldenhuys :

Show quoted text 7 lines
On Tue, Nov 25, 2008 at 3:27 PM, Henry Vermaak wrote: > > which delphi are you using? i can vaguely recall that you can't unset > them in delphi 7, but i may be mistaken. Yup, you are mistaken. ;-) I'm using Delphi 7. I can set *and* unset them with Ctrl+<number>.

heh, maybe i was thinking about that new awesome version of delphi i've been using lately. it's called "lazarus" :)

henry

Reply by email

Graeme Geldenhuys
to Hans-Peter Diettrich: Can't you move the bookmarks to an empty line, so that they become obviously unassigned?…
Hans-Peter Diettrich wrote
Can't you move the bookmarks to an empty line, so that they become obviously unassigned?

I can move them yes, but I want to _remove_ them.

I see no special advantage in removing bookmarks. In detail not when Delphi doesn't remember bookmarks across sessions :-(

I see no special advantage in remembering bookmarks across sessions. :-) Since my Delphi 4 days, I have always used bookmarks as a quick way to jump to section of code - that are relevant to what I am currently working on. Tomorrow or a week from now that code will not be relevant anymore, because I will be working on a different section of the project.

Also, I can see a potential problem with Lazarus's persistent bookmarks. What if I set bookmark 1 in Unit2.pas. Then remove (delete) Unit2.pas from the project. What happens now if I press Ctrl+Shift+1 while I am in Unit1.pas?

Regards,
- Graeme -

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

Reply by email

Graeme Geldenhuys
to Marc Weustink: [..] I don't call it an issue. If I don't need a bookmark, I don't use it :) So it…
Marc Weustink wrote
I don't call it an issue. If I don't need a bookmark, I don't use it :) So it doesn't bother me that it is somewhere assigned. When I need it at another place, I jsut press ctrl+1 to set it there

Well the problem is that I sometimes have a few bookmarks. They don't always : 2, 4, 6 (I use Programmer Dvorak keyboard layout, and the numbers are not in sequence like Qwerty). Now if I mistakenly press Ctrl+Shift+1, it might jump to a totally unrelated unit - compared to what I am working with. This is very annoying - I already have to many units open at once. :-)

Show quoted text 5 lines
> Is the Ctrl+<number> a > toggle feature like Delphi and it's just broken in Lazarus, or does > Lazarus IDE work fundamentally different? It has never been a toggle, but I can see a use for it.

Thanks Marc, I'll search the mailing list, but yes, there is a big benefit for toggling the bookmarks. There is also a big benefit in not having persistent bookmarks. Could somebody with the right knowledge of Lazarus IDE make these user selectable options? I would do it myself if I could, but I find it hard enough just to add IDE shortcuts to add-on I create - so I have no clue where to even start looking for Lazarus IDE keyboard behaviour code.

Regards,
- Graeme -

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

Reply by email

Graeme Geldenhuys
to Mattias Gärtner
Mattias G?rtner wrote
Maybe the best solution for you Graeme is if the IDE automatically removes bookmarks if they are older than x hours.

That's not needed, just a toggle option would be nice... ;-)

BTW, bookmarks are deleted, if you set another bookmark at the same line.

Well, sorry to say, but it's still a dumb design. The developer now has to go to all the trouble and set new bookmarks over each other just to delete them. Why not simply implement a toggle feature?

Plus, using your work around, you are still stuck with the last remaining bookmark. :-(

Like I said: Those bookmarks are persistent little buggers. :-)

Regards,
- Graeme -

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

Reply by email

Martin Friebe
to Graeme Geldenhuys

You can put a feature request in the bugtracker ( I will pick it up) However it will be a while before I get to work on it...

This is unless someone actually brings a reason, why this would be a bad feature....

Martin

Graeme Geldenhuys wrote 37 lines
On Tue, Nov 25, 2008 at 4:51 PM, Mattias G?rtner wrote: > Maybe the best solution for you Graeme is if the IDE automatically removes > bookmarks if they are older than x hours. > That's not needed, just a toggle option would be nice... ;-) > BTW, bookmarks are deleted, if you set another bookmark at the same line. > Well, sorry to say, but it's still a dumb design. The developer now has to go to all the trouble and set new bookmarks over each other just to delete them. Why not simply implement a toggle feature? Plus, using your work around, you are still stuck with the last remaining bookmark. :-( Like I said: Those bookmarks are persistent little buggers. :-) Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Felipe Monteiro de Carvalho
to Martin Friebe

I have also noticed this years ago and and untoggling bookmarks a good idea, but my priority to it is as close to zero as it gets, so I never did anything about it.

Felipe Monteiro de Carvalho

Reply by email

Marc Weustink
to Graeme Geldenhuys: Well the problem is that I sometimes have a few bookmarks. They don't always : 2, 4, 6 …
Graeme Geldenhuys wrote 11 lines
On Tue, Nov 25, 2008 at 4:07 PM, Marc Weustink wrote: > I don't call it an issue. If I don't need a bookmark, I don't use it :) > So it doesn't bother me that it is somewhere assigned. When I need it at > another place, I jsut press ctrl+1 to set it there Well the problem is that I sometimes have a few bookmarks. They don't always : 2, 4, 6 (I use Programmer Dvorak keyboard layout, and the numbers are not in sequence like Qwerty). Now if I mistakenly press Ctrl+Shift+1, it might jump to a totally unrelated unit - compared to what I am working with. This is very annoying - I already have to many units open at once. :-)

Then press ctrl+H and you are back where you came from :)

Marc

Reply by email

Graeme Geldenhuys
to Marc Weustink
Marc Weustink wrote
Then press ctrl+H and you are back where you came from :)

I already use that extensively, but bookmarks are more flexible. Bookmarks allow for precise jumping to specific locations. Ctrl+H is limited.

Regards,
- Graeme -

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

Reply by email

Marc Weustink
to Graeme Geldenhuys
Graeme Geldenhuys wrote 6 lines
On Tue, Nov 25, 2008 at 6:10 PM, Marc Weustink wrote: > Then press ctrl+H and you are back where you came from :) I already use that extensively, but bookmarks are more flexible. Bookmarks allow for precise jumping to specific locations. Ctrl+H is limited.

I mean, jump back when you jumped to the wrong bookmark

Marc

Reply by email

Graeme Geldenhuys
to Martin Friebe: You can put a feature request in the bugtracker ( I will pick it up) However it will be a…
Martin Friebe wrote
You can put a feature request in the bugtracker ( I will pick it up) However it will be a while before I get to work on it...

Thanks. Report as...

http://bugs.freepascal.org/view.php?id=12708

Regards,
- Graeme -

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

Reply by email

Joost van der Sluis
to Martin Friebe: You can put a feature request in the bugtracker ( I will pick it up) However it will be a…

Op dinsdag 25-11-2008 om 15:25 uur [tijdzone +0000], schreef Martin Friebe:

Show quoted text 5 lines
You can put a feature request in the bugtracker ( I will pick it up) However it will be a while before I get to work on it... This is unless someone actually brings a reason, why this would be a bad feature....

I use those bookmarks a lot, and it's one of the most lacking features of Delphi imho that it doesn't store it's bookmarks in the session-info, and that they are bound to the current document...

Toggling the bookmarks will result in removing a bookmark now and then while I don't want to. For example: I want to jump to bookmark 1, I forgot that I was already there, and press ctrl-1 again. Then I see that this is the wrong bookmark and I go to bookmark 2. Now I press ctrl-1 again to go back and find out that my bookmark is gone...

ie: It's not a bug, it's a feature. As discussed before. And it's not worth the trouble adding a switch for it. As Graeme doesn't use the bookmarks, he won't mind if they stay there all the time.

I do use the bookmarks, and this idea oculd lead to very frustrating situations.

Joost.

Reply by email

Martin Friebe
to Joost van der Sluis
Joost van der Sluis wrote 28 lines
Op dinsdag 25-11-2008 om 15:25 uur [tijdzone +0000], schreef Martin Friebe: > You can put a feature request in the bugtracker ( I will pick it up) > However it will be a while before I get to work on it... > > This is unless someone actually brings a reason, why this would be a bad > feature.... > I use those bookmarks a lot, and it's one of the most lacking features of Delphi imho that it doesn't store it's bookmarks in the session-info, and that they are bound to the current document... Toggling the bookmarks will result in removing a bookmark now and then while I don't want to. For example: I want to jump to bookmark 1, I forgot that I was already there, and press ctrl-1 again. Then I see that this is the wrong bookmark and I go to bookmark 2. Now I press ctrl-1 again to go back and find out that my bookmark is gone... ie: It's not a bug, it's a feature. As discussed before. And it's not worth the trouble adding a switch for it. As Graeme doesn't use the bookmarks, he won't mind if they stay there all the time. I do use the bookmarks, and this idea oculd lead to very frustrating situations.

Just trying to understand, but the description above doesn't match what I had in mind, or what I thought Graeme wanted?

- jumping around using ctrl-1, ctrl-2,... as much forward and backward as you want, will not delete any bookmark ever
- pressing ctr1 and ctrl-1 again (as in jumping too) while already being at the line, will never remove a bookmark neither.

But: pressing shift-ctrl-1 (set the bookmar to the current line) will remove it, *if* it is already set.

if you accidentally press shift-ctrl-x combinations you will also loose bookmarks, by:
- setting them to a new location
- setting bookmark 2, where you previously had BM 1, consequently removing BM-1 (yes you still have a BM, but a diff one)

Now yes, toggling adds a (IMHO) tiny amount ot the (IMHO) quite small change of accidentally deleting a BM.

As I said , I didn't follow your description above, but if you re-think it, or meant the shift-ctrl as in my description, then let me know.

There still is BM access via the menus where a feature could be added. Or instead of toggling a dedicated "delete BM from current line" key could be added?

Best Regards
Martin

Reply by email

JoshyFun
to Joost van der Sluis: Op dinsdag 25-11-2008 om 15:25 uur [tijdzone +0000], schreef Martin Friebe: I use those…

Hello Joost,

Tuesday, November 25, 2008, 6:39:04 PM, you wrote:

JvdS> Toggling the bookmarks will result in removing a bookmark now and then JvdS> while I don't want to. For example: I want to jump to bookmark 1, I JvdS> forgot that I was already there, and press ctrl-1 again. Then I see that JvdS> this is the wrong bookmark and I go to bookmark 2. Now I press ctrl-1 JvdS> again to go back and find out that my bookmark is gone...

No "autotoggle" bookmarks, only a way to remove a bookmark, I'm not using them anymore because I can not remove them once not needed any longer. The toggle effect means if a bookmark is set remove it, if not assign a free one.

Best regards, JoshyFun

Reply by email

Joost van der Sluis
to Martin Friebe: Just trying to understand, but the description above doesn't match what I had in mind, or…

Op dinsdag 25-11-2008 om 18:05 uur [tijdzone +0000], schreef Martin Friebe:

Show quoted text 53 lines
Joost van der Sluis wrote: > Op dinsdag 25-11-2008 om 15:25 uur [tijdzone +0000], schreef Martin > Friebe: > >> You can put a feature request in the bugtracker ( I will pick it up) >> However it will be a while before I get to work on it... >> >> This is unless someone actually brings a reason, why this would be a bad >> feature.... >> > > I use those bookmarks a lot, and it's one of the most lacking features > of Delphi imho that it doesn't store it's bookmarks in the session-info, > and that they are bound to the current document... > > Toggling the bookmarks will result in removing a bookmark now and then > while I don't want to. For example: I want to jump to bookmark 1, I > forgot that I was already there, and press ctrl-1 again. Then I see that > this is the wrong bookmark and I go to bookmark 2. Now I press ctrl-1 > again to go back and find out that my bookmark is gone... > > ie: It's not a bug, it's a feature. As discussed before. And it's not > worth the trouble adding a switch for it. As Graeme doesn't use the > bookmarks, he won't mind if they stay there all the time. > > I do use the bookmarks, and this idea oculd lead to very frustrating > situations. > > Just trying to understand, but the description above doesn't match what I had in mind, or what I thought Graeme wanted? - jumping around using ctrl-1, ctrl-2,... as much forward and backward as you want, will not delete any bookmark ever - pressing ctr1 and ctrl-1 again (as in jumping too) while already being at the line, will never remove a bookmark neither. But: pressing shift-ctrl-1 (set the bookmar to the current line) will remove it, *if* it is already set. if you accidentally press shift-ctrl-x combinations you will also loose bookmarks, by: - setting them to a new location - setting bookmark 2, where you previously had BM 1, consequently removing BM-1 (yes you still have a BM, but a diff one) Now yes, toggling adds a (IMHO) tiny amount ot the (IMHO) quite small change of accidentally deleting a BM. As I said , I didn't follow your description above, but if you re-think it, or meant the shift-ctrl as in my description, then let me know.

You're right. I didn't think it through. Forgot that I also have to press 'shift' to set/remove a breakpoint. Then it's no problem for me...

Joost

Reply by email

Hans-Peter Diettrich
to Graeme Geldenhuys: On Tue, Nov 25, 2008 at 3:56 PM, Hans-Peter Diettrich I can move them yes, but I want to…
Show quoted text 9 lines
> I see no special advantage in removing bookmarks. In detail not when > Delphi doesn't remember bookmarks across sessions :-( I see no special advantage in remembering bookmarks across sessions. :-) Since my Delphi 4 days, I have always used bookmarks as a quick way to jump to section of code - that are relevant to what I am currently working on. Tomorrow or a week from now that code will not be relevant anymore, because I will be working on a different section of the project.

An IDE should not guess about what is how long important to the user. When I quit today, and want to resume my work tomorrow, I appreciate to have my current bookmarks as I left them. I also would like persistent folding.

Also, I can see a potential problem with Lazarus's persistent bookmarks. What if I set bookmark 1 in Unit2.pas. Then remove (delete) Unit2.pas from the project. What happens now if I press Ctrl+Shift+1 while I am in Unit1.pas?

Depends on the context. Breakpoints, bookmarks and folding can be seen as project specific, but they also can be seen as file specific. Every IDE will have to specify the implemented handling, depending on reasonable thoughts. The best solution would make everything configurable by the user, with according save/recall features ;-)

DoDi

Reply by email

Hans-Peter Diettrich
to JoshyFun: JvdS> Toggling the bookmarks will result in removing a bookmark now and then JvdS> while…
Show quoted text 10 lines
JvdS> Toggling the bookmarks will result in removing a bookmark now and then JvdS> while I don't want to. For example: I want to jump to bookmark 1, I JvdS> forgot that I was already there, and press ctrl-1 again. Then I see that JvdS> this is the wrong bookmark and I go to bookmark 2. Now I press ctrl-1 JvdS> again to go back and find out that my bookmark is gone... No "autotoggle" bookmarks, only a way to remove a bookmark, I'm not using them anymore because I can not remove them once not needed any longer. The toggle effect means if a bookmark is set remove it, if not assign a free one.

I just noticed that I'm using (on Delphi) the old style ctrl-K-# (set) and ctrl-Q-# (goto) commands. I dunno remember whether there is or was a corresponding ctrl-H-# or similar (hide/remove) command in some key mapping.

DoDi

Reply by email

Graeme Geldenhuys
to Martin Friebe: Just trying to understand, but the description above doesn't match what I had in mind, or…
Martin Friebe wrote 11 lines
Just trying to understand, but the description above doesn't match what I had in mind, or what I thought Graeme wanted? - jumping around using ctrl-1, ctrl-2,... as much forward and backward as you want, will not delete any bookmark ever - pressing ctr1 and ctrl-1 again (as in jumping too) while already being at the line, will never remove a bookmark neither. But: pressing shift-ctrl-1 (set the bookmar to the current line) will remove it, *if* it is already set.

My appologies, I did get my earlier descriptions a bit wrong, sometimes leaving out the Shift part. Martin, what you described above is exactly what I am looking for.

I reconfirmed the desired behavior with Delphi 7.

Ctrl+Shift+<number> Sets and Unsets bookmarks - it toggles the bookmark
at the current position.
Ctrl+<number> Jumps to bookmark.

If Lazarus can work as above, then I don't mind persistent BM's because I can always unset them if I want.

Regards,
- Graeme -

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

Reply by email

Graeme Geldenhuys
to Hans-Peter Diettrich: I just noticed that I'm using (on Delphi) the old style ctrl-K-# (set) and ctrl-Q-#…
Hans-Peter Diettrich wrote
I just noticed that I'm using (on Delphi) the old style ctrl-K-# (set) and ctrl-Q-# (goto) commands. I dunno remember whether there is or was a corresponding ctrl-H-# or similar (hide/remove) command in some key mapping.

My major problem is finding a suitable (comfortable) set of keyboard shortcuts due to the fact that I use the Programmer Dvorak keyboard layout. By default I need to press Shift to access the numbers on the top row keps, so obviously the standard bookmark shortcuts don't work for me. :-)

Programmer Dvorak is a blessing and a pain. It's great for typing source code, but it's a pain with any program that has many default shortcuts. Luckily Lazarus IDE is configurable. I had to sit for a while and reconfigure all my most used shortcuts in Lazarus IDE so they are more comfortable to type. A once off pain, but I'm pretty happy now. :-)

Regards,
- Graeme -

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

Reply by email

Martin Friebe
to Hans-Peter Diettrich: An IDE should not guess about what is how long important to the user. When I quit today,…
Hans-Peter Diettrich wrote 6 lines
An IDE should not guess about what is how long important to the user. When I quit today, and want to resume my work tomorrow, I appreciate to have my current bookmarks as I left them. I also would like persistent folding.

saving folding with the session, is a nice idea(so probably as an option, as I can see some people may really not like it)

I added it to my todo. (But it will be a good while before I get to that....)

Same is for copy and paste => if you copy a whole folded block, wouldn't it be nice, you could insert it, and it was still folded?

Best Regards
Martin

Reply by email

Hans-Peter Diettrich
to Graeme Geldenhuys: On Tue, Nov 25, 2008 at 11:43 PM, Hans-Peter Diettrich My major problem is finding a…
Show quoted text 5 lines
My major problem is finding a suitable (comfortable) set of keyboard shortcuts due to the fact that I use the Programmer Dvorak keyboard layout. By default I need to press Shift to access the numbers on the top row keps, so obviously the standard bookmark shortcuts don't work for me. :-)

I have similar problems with the numpad, which I like to use for cursor comands. On Windows everything works as expected, but on Linux the SHIFT key toggles the numpad mode. That's a problem of the OS key handling, not of Lazarus. In an older SuSE version I could find an option "Windows-style numpad handling" (or so), which I couldn't find in openSUSE any more.

DoDi

Reply by email

Hans-Peter Diettrich
to Martin Friebe: saving folding with the session, is a nice idea(so probably as an option, as I can see…
I added it to my todo. (But it will be a good while before I get to that....)

I plan to contribute to Lazarus myself, but with other goals (more edit windows, docking...).

Same is for copy and paste => if you copy a whole folded block, wouldn't it be nice, you could insert it, and it was still folded?

I know how this can be done on Windows, but no idea about other platforms. If you can make it work - fine! :-)

DoDi

Reply by email

Graeme Geldenhuys
to Martin Friebe: saving folding with the session, is a nice idea(so probably as an option, as I can see…
Martin Friebe wrote
Same is for copy and paste => if you copy a whole folded block, wouldn't it be nice, you could insert it, and it was still folded?

"Copy and Paste" is the route of all evil! :-) Sometimes I wish I could disable "copy & paste" in my editor - to force me to review code and prevent many bugs. ;-)

Regards,
- Graeme -

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

Reply by email

Graeme Geldenhuys
to Hans-Peter Diettrich: I have similar problems with the numpad, which I like to use for cursor comands. On…
Hans-Peter Diettrich wrote 6 lines
I have similar problems with the numpad, which I like to use for cursor comands. On Windows everything works as expected, but on Linux the SHIFT key toggles the numpad mode. That's a problem of the OS key handling, not of Lazarus. In an older SuSE version I could find an option "Windows-style numpad handling" (or so), which I couldn't find in openSUSE any more.

Under linux you should be able to make your own custom keymap file. That's pretty much what the Programmer Dvorak install does. And it add some extra features to the numpad. Pressing 'Right ALT' or 'ALT GR' and then the numpad keys, you get Hex values, brackets etc.. eg: ()$ABCDEF=x:\.,

Regards,
- Graeme -

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

Reply by email

Mattias Gaertner
to Graeme Geldenhuys: On Tue, Nov 25, 2008 at 11:43 PM, Hans-Peter Diettrich My major problem is finding a…
Show quoted text 20 lines
On Tue, Nov 25, 2008 at 11:43 PM, Hans-Peter Diettrich wrote: > > I just noticed that I'm using (on Delphi) the old style ctrl-K-# > (set) and ctrl-Q-# (goto) commands. I dunno remember whether there > is or was a corresponding ctrl-H-# or similar (hide/remove) command > in some key mapping. My major problem is finding a suitable (comfortable) set of keyboard shortcuts due to the fact that I use the Programmer Dvorak keyboard layout. By default I need to press Shift to access the numbers on the top row keps, so obviously the standard bookmark shortcuts don't work for me. :-) Programmer Dvorak is a blessing and a pain. It's great for typing source code, but it's a pain with any program that has many default shortcuts. Luckily Lazarus IDE is configurable. I had to sit for a while and reconfigure all my most used shortcuts in Lazarus IDE so they are more comfortable to type. A once off pain, but I'm pretty happy now. :-)

Maybe you want to post your dvorak key mapping for laz somewhere.

Mattias

Reply by email

Mattias Gaertner
to Hans-Peter Diettrich: An IDE should not guess about what is how long important to the user. When I quit today,…
Show quoted text 16 lines
Graeme Geldenhuys schrieb: >> I see no special advantage in removing bookmarks. In detail not >> when Delphi doesn't remember bookmarks across sessions :-( > > I see no special advantage in remembering bookmarks across sessions. > :-) Since my Delphi 4 days, I have always used bookmarks as a quick > way to jump to section of code - that are relevant to what I am > currently working on. Tomorrow or a week from now that code will > not be relevant anymore, because I will be working on a different > section of the project. An IDE should not guess about what is how long important to the user. When I quit today, and want to resume my work tomorrow, I appreciate to have my current bookmarks as I left them. I also would like persistent folding.

I second that.
Such session information is a big time saver for me.

> Also, I can see a potential problem with Lazarus's persistent > bookmarks. What if I set bookmark 1 in Unit2.pas. Then remove > (delete) Unit2.pas from the project. What happens now if I press > Ctrl+Shift+1 while I am in Unit1.pas?

Nothing.
If a unit is closed its bookmarks are removed.
When the unit is reopened the bookmarks are restored (unless you changed them).
You can see the active bookmarks in the popup menu of the source editor.

Show quoted text 5 lines
Depends on the context. Breakpoints, bookmarks and folding can be seen as project specific, but they also can be seen as file specific. Every IDE will have to specify the implemented handling, depending on reasonable thoughts. The best solution would make everything configurable by the user, with according save/recall features ;-)

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner: On Wed, 26 Nov 2008 00:38:48 +0200 Maybe you want to post your dvorak key mapping for laz…

On Wed, Nov 26, 2008 at 11:19 AM, Mattias Gaertner

Maybe you want to post your dvorak key mapping for laz somewhere.

As my other post suggested. I am considering printing out my layout - so even I can remember everything. :-) If I decide to go through all that trouble, I will make it available on the Lazarus wiki somewhere.

Regards,
- Graeme -

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

Reply by email

Graeme Geldenhuys
to Mattias Gärtner
Mattias G?rtner wrote 6 lines
> > As my other post suggested. I am considering printing out my layout - > so even I can remember everything. :-) If I decide to go through all > that trouble, I will make it available on the Lazarus wiki somewhere. A function to print the current key mapping would be a great feature.

After reading Michael's 'Printing with Lazarus' article in Toolbox magazine, I have new motivation to implement that feature. :-)

Regards,
- Graeme -

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

Reply by email

Alexander Klenin
to Graeme Geldenhuys: On Wed, Nov 26, 2008 at 12:28 PM, Mattias G?rtner After reading Michael's 'Printing with…

First, I want to say that I agree that bookmark toggling would be nice to have. Perhaps I will even find time to fix issue 12708 -- unfortunately, I am on a business trip now.

OTOH, I prefer persistent bookmarks. If someone wants to clear bookmarks between sessions,
I think a simple "Clear all bookmarks" menu item would suffice.

My third note concerns another major difference between Lazarus and Delphi bookmarks:
they are per-file in Delphi, but per-project in Lazarus. Both modes have their advantages,
so I sometimes wish to have them both... What do others think on this?

Alexander S. Klenin Insight Experts Ltd.

Reply by email

Graeme Geldenhuys
to Hans-Peter Diettrich: From my last try I remember that Linux xor's the SHIFT key with NumLock, hard coded. DoDi
Hans-Peter Diettrich wrote 5 lines
> Under linux you should be able to make your own custom keymap file. From my last try I remember that Linux xor's the SHIFT key with NumLock, hard coded.

I can email you the older xmodmap.dvp file if that will help. It's 4kb in size.

You can also download the newer v1.2 layout directly from: http://www.kaufmann.no/roland/dvorak/

There it also explains the modifications to the numpad keys.

Regards,
- Graeme -

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

Reply by email

Graeme Geldenhuys
to Alexander Klenin: First, I want to say that I agree that bookmark toggling would be nice to have. Perhaps I…
Alexander Klenin wrote
First, I want to say that I agree that bookmark toggling would be nice to have. Perhaps I will even find time to fix issue 12708 -- unfortunately, I am on a business trip now.

Mattias implemented toggling bookmarks as I described earlier, but I haven't tested it yet.

Regards,
- Graeme -

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

Reply by email