How to restore last location in file?

CodeLite installation/troubleshooting forum
N7DR
CodeLite Enthusiast
Posts: 20
Joined: Sun Sep 01, 2019 12:57 am
Genuine User: Yes
IDE Question: C++
Contact:

How to restore last location in file?

Post by N7DR »

I recently updated from codelite 14.0.0 to 17.0.0 (following an update of debian stable from bullseye to bookworm).

In older versions of codelite, restarting the program would remember the last location of the cursor in each file, so I could carry on where I left off in the prior session.

It seems that in 17.0.0 the default behaviour has changed, and the cursor is always placed near the top of the file (I'm not exactly sure how it chooses where to put the cursor, but it looks like it might be the start of the first non-comment line in the file).

I find the new behaviour quite unhelpful, since I often can't remember the location of my last edit in a file when I restart a session. I looked in the settings, but couldn't find what I need to do to have codelite automatically open the file with the cursor correctly placed at its location when the last session was ended. So how do I do that?

N7DR
CodeLite Enthusiast
Posts: 20
Joined: Sun Sep 01, 2019 12:57 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to restore last location in file?

Post by N7DR »

No one has replied to my question :-(

I am pretty fed up of having to write strings into code files to remind myself where I finish an editing session so that I can pick up again next time where I left off (especially since I sometimes forget to do so). Could someone please put me out of my misery and tell me how to restore the old behaviour?

User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to restore last location in file?

Post by eranif »

this was a bug and it was fixed with recent version of CodeLite - try one of the latest .deb files from the website

Make sure you have read the HOW TO POST thread
N7DR
CodeLite Enthusiast
Posts: 20
Joined: Sun Sep 01, 2019 12:57 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to restore last location in file?

Post by N7DR »

try one of the latest .deb files from the website

I followed the instructions at:
https://docs.codelite.org/downloads/dow ... ntu-debian
and added:
deb https://repos.codelite.org/debian/ bullseye devel
to sources.list (but, as you can see, substituting "bookworm" for "bullseye"), but when I tried to run "apt update", I got:

root@shack20:/etc/apt# apt update
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Ign:2 https://repos.codelite.org/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian bookworm InRelease
Err:4 https://repos.codelite.org/debian bookworm Release
404 Not Found [IP: 79.143.189.67 443]
Hit:5 http://deb.debian.org/debian bookworm-updates InRelease
Hit:6 http://deb.debian.org/debian bookworm-backports InRelease
Reading package lists... Done
E: The repository 'https://repos.codelite.org/debian bookworm Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@shack20:/etc/apt#

So it looks like I have to wait for something that's compatible with bullseye to be uploaded, unless there's somewhere else on your site that provides a .deb compatible with bullseye.

N7DR
CodeLite Enthusiast
Posts: 20
Joined: Sun Sep 01, 2019 12:57 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to restore last location in file?

Post by N7DR »

I meant "compatible with bookworm" in the last sentence, not "compatible with bullseye".

DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: How to restore last location in file?

Post by DavidGH »

Hi,

That page is only for 'stable' releases; stable currently being 17.0. As the official debian bookworm codelite package is 17.0...

try one of the latest .deb files from the website

I think eranif meant the ubuntu deb from https://downloads.codelite.org/. However that doesn't install on bookworm (missing dependencies).

I suggest you try building from the 17.3 source.

Regards,

David

Post Reply