ANGRYsearch
ANGRYsearch copied to clipboard
feature request: 'only one instance' and always show 'document modify date'
Hi -- I love Angry Search and am very grateful to you for making it available. Two features I'd like to see: one is to 'allow only one instance' and the other is to always show file modification date. I do use 'fast search' and I note that you point out that the file date is not an option in 'fast search' -- there is probably a software reason (i.e. speed) preventing this but just thought i would request it. thanks again.
+1 for an 'allow only one instance' option. I could write a wrapper, in Bash, to do that, but it would result in a messy setup! Perhaps I should elaborate upon my use case. So: I have AngrySearch set to run on a hotkey; but that means I can get many AngrySearch instances!
I add that, as things stand, one can end up with multiple AngrySearch icons on one's panel. (This almost makes me . . angry!)
I have written a script to implement (well, up to a point . .) the only-one-instance functionality. That script is here.
Instructions
- Ensure one has 'xdotool' installed. (On Mint, Ubuntu and Debian,
sudo apt install xdotool
should suffice.) - Create a text file containing the script. Save the file.
- Mark the script executable (using your file manager or with
chmod +x <fullPathToScript>
). - Use your OS to run the script on the press of a hotkey.
That's it. But note the following.
This procedure will not prevent multiple instances of AngrySearch when the second (or later) instance is run from a menu or launcher or terminal; it will stop only a hotkey from generating more than one instance. Still: one could customize one's launcher, and/or make a bash alias, such that the script is run rather than AngrySearch being run directly - and then one would not get multiple instances in those other ways either.
EDITED to point to an improved version of the script.