Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remember old searches (search history) #167

Closed
Decme opened this issue Oct 17, 2012 · 14 comments · Fixed by #22163
Closed

remember old searches (search history) #167

Decme opened this issue Oct 17, 2012 · 14 comments · Fixed by #22163
Labels
Feature request Search engine Issues related to the search engine/search plugins functionality

Comments

@Decme
Copy link

Decme commented Oct 17, 2012

If I have qBittorrent open and use it to search, sometimes I have several tabs of search results. If I suddenly need to restart my computer, the search results are gone, the tabs are gone, and I have to start over.

Please remember searches from previous sessions, even if the computer is restarted or recovers from a crash, etc.

@nivensd
Copy link

nivensd commented Oct 17, 2012

It would probably be cumbersome (read: memory draining) to make it remember the searches by default, but the option to do so would be nice.

@Belove0
Copy link

Belove0 commented Apr 10, 2013

I'd prefer to have this. I would like Qbt to "session resume" when I restart it. The prior search data would be cached in that case. It could be optional.

@ngosang ngosang added the Search engine Issues related to the search engine/search plugins functionality label Jan 21, 2017
@sledgehammer999 sledgehammer999 changed the title Wishlist - remember old searches remember old searches Oct 29, 2020
@ByteEater-pl
Copy link

Would you be willing to implement (or accept a contributed PR) a simple subset of this feature: remembering search strings (not the results) and suggesting them when typing? It's smaller and also avoids @nivensd's concern for memory draining.

Would be very useful when searching for new stuff similar to some searched before (e.g. weekly searches for new episodes of a programme without RSS for torrents).

@dbojan
Copy link

dbojan commented Jun 17, 2022

I see this has not been added yet.
May I suggest a simpler version:
If there is a file in profile folder, named bookmarks.txt , load file
Read it line by line,
add each line to the menu: tools\bookmarks.

When user clicks on say: tools/bookmars/ubuntu linux, search would open, just as if she would click on 'search' tab, entered search text, and clicked on search or enter.

Optional, add 1st line to the bookmark submenu that says, 'open all'.
another entry 'edit bookmarks', would open bookmarks.txt
add entry that said reload bookmarks.

to add searches to the bookmark, add right click menu on the performed search, that says: 'add search to bookmark'.

--
with regards to the saved search
add menu entry in tools\search\ that says: 'save currently opened searches'. they would be saved to profile folder, in a file named searches.txt
another one would say: 'open saved searches', or something similar.
optionally: menu entry with checkbox that says 'always reload saved searches on start'
and menu entry with checkbox that says 'always save searches on exit'

Thank you.

--
I also encourage all users who like this software to donate to qbittorrent
https://www.qbittorrent.org/donate.php

@dbojan
Copy link

dbojan commented Jun 19, 2022

in the meantime, create shortcut to search from desktop using browser.
Add rem in front of one of those start if you do not need them both.
You can replace Google search with something else if you want
Save this text as searchweb.bat, double click it to start:

rem no space between ,
set strings=ubuntu linux,mint linux

SETLOCAL EnableDelayedExpansion
rem replace , with " " including quotes

for %%a in ("%strings:,=" "%") do (
 set "string=%%~a"
start "" "https://www.google.com/search?q=!string!"
)

rem or if you also need first letter of the search text, and to replace space with -  


for %%a in ("!strings:,=" "!") do (
 set "string=%%~a"
 rem replace space with -
 set "string=!string: =-!"
 set "fl=!string:~0,1!"
 echo !fl! !string!
start "" "https://www.google.com/search?q=!fl! !string!"
)



pause
exit 

rem to use specific browser, add its path after "", like this: 
rem start "" "D:\apps\GoogleChrome\GoogleChrome.exe" "http...

or a simpler version:

rem no space between ,
set strings=ubuntu linux,mint linux

rem replace , with " " including quotes
for %%a in ("%strings:,=" "%") do (
 start "" "https://www.google.com/search?q=%%~a"
)
pause

@thalieht thalieht changed the title remember old searches remember old searches (search history) Nov 30, 2023
@ninerays
Copy link

I would like to add to the request of having my searches retained between sessions. I use this for keeping TV show searches and looking out for the next one etc. I currently use Jacket via a web browser and so I am able to maintain search persistence via web browser pages (one for each search). As I am now able to use Jacket as a search engine within QBittorrent, it would be so good to maintain all of this within the Qbittorrent application each time I start it up. For me this the only thing missing for Qbittorrent to be the full solution.

@Laidbak300
Copy link

Same. If I've carried out four or fives searches but get interrupted in a session and I realize I'm not getting back to my current torrent project for a day or two, it's time to shut off the computer--and currently that means I lose all the searches. Gotta be some way to ameliorate the problem.

@rexleonis
Copy link

Still no search history after so many years? I have to retype the search string every time like a fool.

@thirdprize
Copy link

I’d like this as well.

@giann3
Copy link

giann3 commented Jan 6, 2025

I'd both like a history between sessions and a way to refine searches, keep the previous input for each tab, so it can be refined and refreshed instead of open new tab.

@glassez
Copy link
Member

glassez commented Jan 14, 2025

Under active development.
#22163

@ByteEater-pl
Copy link

Would you suggest I open a separate issue for the feature requested in my comment which seems to not be covered by #22163?

@glassez
Copy link
Member

glassez commented Jan 14, 2025

Would you suggest I open a separate issue for the feature requested in my comment which seems to not be covered by #22163?

Sure.

@glassez
Copy link
Member

glassez commented Jan 26, 2025

Would you suggest I open a separate issue for the feature requested in my comment which seems to not be covered by #22163?

Sure.

Anyway, I decided to implement it while I was involved in "Search" related tasks.
#22208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Search engine Issues related to the search engine/search plugins functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.