Open jacs2022 opened 2 years ago
Hi, did you try to set the option use default value
of /org/mate/pluma/history-replace-with
and /org/mate/pluma/history-search-for
to true
? This should set the empty array as default, so no values will be saved.
Thanks for replying mbkma!
Indeed, I have tried that as well.
But it only works temporarily... It doesn't work permanently like I want.
dconf-editor -> /org/mate/pluma/history-replace-with/use_default_value/ON dconf-editor -> /org/mate/pluma/history-search-for/use_default_value/ON
I close dconf-editor.
I reopen pluma and edit... Again the replace and search histories are saved, in this session and also for subsequent pluma sessions.
I don't think it's possible ATM to disable the feature (although it doesn't really work for me, not sure why: I don't seem to get anything added to it, only existing items get reordered, but well). Anyway, I see 3 options:
Hack something to empty the history in response to change, e.g. something like this (untested):
#!/bin/sh
gsettings monitor org.mate.pluma | while IFS=': ' read -r key value; do
case "$key" in
history-*) gsettings reset org.mate.pluma "$key";;
esac
done
Thanks for replying cwendling!
Your script has clarified the usefulness of "gsettings", I had already used it on some occasion some time ago, but I had not investigated it.
I've done this:
$ cd ~
$ echo "Exec=./.config/mate/panel2.d/default/launchers/pluma.kill.historys.sh" > ./.config/mate/panel2.d/default/launchers/launchers.desktop
$ echo "#!/bin/bash" > ./.config/mate/panel2.d/default/launchers/pluma.kill.historys.sh
$ echo "gsettings reset org.mate.pluma history-replace-with; gsettings reset org.mate.pluma history-search-for; pluma" >> ./.config/mate/panel2.d/default/launchers/pluma.kill.historys.sh
$ chmod +x ./.config/mate/panel2.d/default/launchers/pluma.kill.historys.sh
I now have a new launcher on the taskbar that first clears my pluma histories and then launches it.
Indeed, some developer should take note of the detail of the search and replace history deactivation and add it as an option to the application.
Hope this solution helps someone else.
Pluma is a lightweight, easy-on-the-eyes editor completely embedded in the Mate desktop. My favorite as a simple editor for these three reasons and because Mate is my favorite desktop, for daily use.
I had considered the option to uninstall pluma and use mousepad, this is quite well integrated into the Mate desktop, but I prefer to use pluma.
Thanks cwendling again for the idea of using gsettings.
I already have it solved!
Greetings to all from Spain!
And happy hacking!
Jac.
Hello friends:
I have been using Mate Desktop and Pluma as my default basic text editor for a long time.
For now I am using Debian Buster, with the version of Pluma 1.20.4.
And the demons drive me to not be able to deactivate the search and replacement history.
I don't want any records of my replacements or my searches in the system to remain, and I am finding it impossible to do so.
I have tried disabling it in several ways:
1a. From Pluma: "pluma -> edit -> preferences -> plugins", disabling all plugins.
2a. From dconf-editor: "dconf-editor -> "find" -> pluma -> (org/mate/pluma) -> history-replace-with" trying various ways. Also on the same path disabling "history-search-for" also in various ways.
3a. Deleting the /home/$user/.config/dconf/user file. Replacing it with a previous backup that did not contain search settings or pluma replacements.
4a. Launching an application to delete and replace the file /home/$user/.config/dconf/user at the beginning of the session.
But there is no way, and he has me fed up!
Please, can you tell me if it is foreseen in this version, or in a later one, the user's deactivation of the pen search and replace registers? Or how could I get rid of them permanently?
Thanks for reading me!
And excuse my English, I speak it quite badly!
Greetings and happy hacking!
Jac.