Find/Replace History Never Clears

Did you find any problems using this software? Please post here...
Post Reply
Random Void User
Posts: 84
Joined: 13.07.2024 21:19

Find/Replace History Never Clears

Post by Random Void User »

Code: Select all

Help /
  Command palette ... /
    settings: clear find/replace dialog history
This command does not work as it should. It only temporarily clears the pop-up menu of all previous search items. Quit and restart Cud, the menu reappears.

The command should work like

Code: Select all

File /
  Open recent file /
    Clear list
which permanently removes all listings.

The find/replace list stores in two places. One is user.json, the other is cuda_find_replace_3rd_history.json. I do not understand the need for two locations. Recent files, for example, live only in user.json. Deleting the other file does not wipe the list, it gets reconstructed.
main Alexey
Posts: 2863
Joined: 25.08.2021 18:15

Re: Find/Replace History Never Clears

Post by main Alexey »

On _clean_ app (no additional plugs) I see that 'clear find/replace history' deletes in-memory lists + deletes 2 sections in the 'history.json': "list_find", "list_replace".
Maybe you see the issue only with the plugin "Find-Replace Separate History"?
main Alexey
Posts: 2863
Joined: 25.08.2021 18:15

Re: Find/Replace History Never Clears

Post by main Alexey »

added the new API for the plugin "Find-Replace Separate History".

on_state:
* APPSTATE_CLEAR_HISTORY_RECENTS: Running of the command "settings: clear recent file history".
* APPSTATE_CLEAR_HISTORY_FINDER: Running of the command "settings: clear find/replace dialog history".
* APPSTATE_CLEAR_HISTORY_CONSOLE: Running of the command "settings: clear console input history".

will be in the next update of Cud. then plugin will be updated and problem, maybe, will be fixed.
main Alexey
Posts: 2863
Joined: 25.08.2021 18:15

Re: Find/Replace History Never Clears

Post by main Alexey »

I wrote a note to the plugin author
https://github.com/ildarkhasanshin/cuda ... y/issues/5
let's wait few days.
_92
Posts: 26
Joined: 11.10.2012 10:57
Contact:

Re: Find/Replace History Never Clears

Post by _92 »

plugin updated
eat sleep code repeat
Post Reply