Sign in Join

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

Mailing lists / lazarus / 2016-03

Feature Request: Disable/clear the "Recent files" and "Recent projects" lists

13 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

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

max.lemradt2

Hello,

I'd like to be able to disable or clear the "Recent files" and "Recent projects" lists, e. g. for privacy reasons. All I could find was someone suggesting to rename the file, then click on the item in the list, which makes it disappear because Lazarus cannot find the file, then rename the file again to its original name.

Setting "Tools - Options - Environment - Files" "Max recent files" and/or "Max recent project files" to 0 (zero) doesn't help.

I'm using Lazarus 1.6 2016-02-14 SVN Revision 51630 i386-win32-win32/win64.

Thanks,
Max

Ondrej Pokorny
to max.lemradt2
max.lemradt2 wrote
I'd like to be able to disable or clear the "Recent files" and "Recent projects" lists, e. g. for privacy reasons.

I will probably never use it but if you need it, feel free to create such a function and send a patch to mantis. A good place would be to create a button in Options -> Environment -> Files.

Ondrej

Mattias Gaertner
to max.lemradt2: I'd like to be able to disable or clear the "Recent files" and "Recent projects" lists,…
Show quoted text 7 lines
"max.lemradt2" hat am 28. M?rz 2016 um 18:14 geschrieben: Hello, I'd like to be able to disable or clear the "Recent files" and "Recent projects" lists, e. g. for privacy reasons.

One solution:
Start the IDE, configure it to your liking.
Close it and remove the <Recent> element in ~/.lazarus/environmentoptions.xml and any other option you don't want to publish.
Copy the environmentoptions.xml and editoroptions.xml files to /etc/lazarus/. These are the templates used when the IDE starts.

After closing the IDE or before you log out delete the ~/.lazarus directory.

Mattias

Mattias Gaertner
to Ondrej Pokorny: I will probably never use it but if you need it, feel free to create such a function and…
Show quoted text 10 lines
Ondrej Pokorny hat am 28. M?rz 2016 um 20:25 geschrieben: On 28.03.2016 18:14, max.lemradt2 wrote: > I'd like to be able to disable or clear the "Recent files" and "Recent > projects" lists, e. g. for privacy reasons. I will probably never use it but if you need it, feel free to create such a function and send a patch to mantis. A good place would be to create a button in Options -> Environment -> Files.

I guess he needs a button to wipe out all history lists. Not just projects and files.

Mattias

Giuliano Colla
to Ondrej Pokorny: I will probably never use it but if you need it, feel free to create such a function and…

Il 28/03/2016 20:25, Ondrej Pokorny ha scritto:

Show quoted text 8 lines
On 28.03.2016 18:14, max.lemradt2 wrote: > I'd like to be able to disable or clear the "Recent files" and > "Recent projects" lists, e. g. for privacy reasons. I will probably never use it but if you need it, feel free to create such a function and send a patch to mantis. A good place would be to create a button in Options -> Environment -> Files.

Please do not overload Lazarus with useless features. Removing "Recent Files" and Recent Project" entries without actually removing the actual files/projects, is simply stupid. Anyone accessing the system can list files/directories and from the dates know exactly which files/projects were accessed, or modified.
If whatever paranoid need of privacy is an issue, files and projects should be kept in a removable support: when the support is removed the Recent items which become inaccessible are removed from the list, without the need of any extra feature.

Giuliano

Graeme Geldenhuys
to Giuliano Colla
Giuliano Colla wrote
Please do not overload Lazarus with useless features.

Indeed. Also make your $HOME directory user readable only, and make sure your account and screensaver has a decent secure password.

Regards,
- Graeme -

Dmitry Boyarintsev
to Ondrej Pokorny: I will probably never use it but if you need it, feel free to create such a function and…
Ondrej Pokorny wrote 10 lines
On 28.03.2016 18:14, max.lemradt2 wrote: > I'd like to be able to disable or clear the "Recent files" and "Recent > projects" lists, e. g. for privacy reasons. > I will probably never use it but if you need it, feel free to create such a function and send a patch to mantis. A good place would be to create a button in Options -> Environment -> Files.

Why a patch instead of an IDE plugin?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160329/66c23e4e/attachment.html>

Martin Frb
to Dmitry Boyarintsev
Dmitry Boyarintsev wrote 16 lines
On Mon, Mar 28, 2016 at 2:25 PM, Ondrej Pokorny < <mailto:>> wrote: On 28.03.2016 18:14, max.lemradt2 wrote: I'd like to be able to disable or clear the "Recent files" and "Recent projects" lists, e. g. for privacy reasons. I will probably never use it but if you need it, feel free to create such a function and send a patch to mantis. A good place would be to create a button in Options -> Environment -> Files. Why a patch instead of an IDE plugin?

I dont think it needs a button.

There already is "Max recent files". If this is set to a lower value, then it should cut the existing list. So 2 steps:
1) fix this setting to cut old entries if the value was reduced
2) make it work with 0.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160329/886b4154/attachment.html>

Martin Frb
to Martin Frb
Martin Frb wrote 11 lines
On 29/03/2016 16:59, Dmitry Boyarintsev wrote: > On Mon, Mar 28, 2016 at 2:25 PM, Ondrej Pokorny > wrote: > > On 28.03.2016 18:14, max.lemradt2 wrote: > > I'd like to be able to disable or clear the "Recent files" > and "Recent projects" lists, e. g. for privacy reasons. > > 2) make it work with 0.

If 0 currently means unlimited, then:
1) a new value is needed for unlimited
2) the configfile version must be increased, so the config reader knows according to the version what 0 means.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160329/f4c94b42/attachment.html>

Dmitry Boyarintsev
to Martin Frb
Martin Frb wrote 6 lines
If 0 currently means unlimited, then: 1) a new value is needed for unlimited 2) the configfile version must be increased, so the config reader knows according to the version what 0 means.

So why to change IDE instead of an IDE plugin?

This question bothers me all the time. Despite of the fact there's a decent plugin API (IDEIntf), a lot of changes are making into IDE itself.

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160329/507d08f9/attachment.html>

Martin Frb
to Dmitry Boyarintsev
Dmitry Boyarintsev wrote 14 lines
On Tue, Mar 29, 2016 at 12:15 PM, Martin Frb < <mailto:>> wrote: If 0 currently means unlimited, then: 1) a new value is needed for unlimited 2) the configfile version must be increased, so the config reader knows according to the version what 0 means. So why to change IDE instead of an IDE plugin? This question bothers me all the time. Despite of the fact there's a decent plugin API (IDEIntf), a lot of changes are making into IDE itself.

In general I agree, many thinks can be done as plugin.

In this case, I think:

part 1 is an actual bug in the current implementation. If I reduce "max recent procject" from 10 to 1, then the list will still display 10. That is wrong. It should be cut to 1. But it will only be cut, if I open a new project (via the open dialog).

part 2 is a feature. It could go in a plugin (assuming IdeIntf allows access to all needed functions).
And then it can not use the current spin edit, but instead must have a checkbox. Or always active if installed.

Not sure how practical that is in this case. A plugin could probably hide the menu entry. So that would be possible. Not sure if it can (with current IdeIntf) prevent the values from being written to the config file. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160329/b0ac4833/attachment.html>

Dmitry Boyarintsev
to Dmitry Boyarintsev: So why to change IDE instead of an IDE plugin? This question bothers me all the time.…

On Tue, Mar 29, 2016 at 12:19 PM, Dmitry Boyarintsev <

Show quoted text 12 lines
wrote: On Tue, Mar 29, 2016 at 12:15 PM, Martin Frb wrote: > If 0 currently means unlimited, then: > 1) a new value is needed for unlimited > 2) the configfile version must be increased, so the config reader knows > according to the version what 0 means. > > So why to change IDE instead of an IDE plugin?

Here's the plugin

https://github.com/skalogryz/clearrecent

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160329/2e5f08ba/attachment-0001.html>