-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
Support for "real" keyword searches #311
Comments
Thanks for the suggestion. My understanding from your explanation is the keyword is the shortcut to a url e.g. a search URL. So when you fire the keyword with a search pattern the pattern is appended to the URL. To me it seems more relevant to a web search utility than a bookmarking one because not all URLs would be search URIs. Yes, it's also relevant to a browser where you can use it to fire a query in the address bar directly.
That goes for us too. We are only two devs working on this now. The work involved in adding a new field, making the upgrade seamless, modifying our import and export APIs etc. sounds overwhelming at this stage of the project. The best I can do is add this in the ToDo list.
I would prefer the word search term. Would you care to raise a PR for this? |
I'll see if there is some time on weekends to do it. If anyone else would like to grab this task: Feel free to do it 😄 |
I have added an item in the todo list for keyword. I will wait for a PR from you on the search term change. |
It would be great if you can contribute this feature. |
This is already in the ToDo list. Closing the defect. |
Was this implemented? This seems different from the OP's suggestion. Can you please clarify the issue? |
First, I want to say thanks for this great project and the still ongoing development of new features 👍. I currently switch to Buku as my default CLI bookmark manager. I've also tested shiori, but it definitely lacks support for many features (still in a very early state of development) and I want to use a already stable-proven and "production-ready" app.
Firefox “Keyword Searches”
There is one bookmark feature of Firefox I don't want to miss anymore and it seems like it is really “underused” which may be due to its unfamiliarity: Keyword Searches or also know as FAQ question “How to search IMDB, Wikipedia and more from the address bar”.
I was a bit confused after playing around with buku and reading through the documentation about the usage of the word “keyword” (or “search keyword”) which should be better described with the word “search term” or “search pattern”. In the context of Firefox bookmarks it is a bit misleading due to the “keyword” feature.
In short, the “Keyword Search” Firefox feature allows to add a keyword to a bookmark.
This allows to quickly use the search function a specific site, which is the same as web search engines (based on the Open Search Standard, by entering the keyword followed by a whitespace and then the actual search term.
Example using the keyword
ghs
(GitHub Stars) to search my own GitHub stars forreact
:The URL of the bookmark would be
https://github.com/arcticicestudio?tab=stars&q=%s
where the%s
will be replaced with the search term where special characters will escaped automatically. See the Mozilla knowledge base documentation for more details about the advantages of using a captial%S
.Note that a bookmark's keywords should not be confused with tags! These are two different features. Also note that the keyword feature is not limited to Firefox but also available for other browsers like Google Chrome and Chromium.
Current compatibility with buku
Anyway, I've tested the import & export feature of buku and noticed that the keyword of bookmark that has been created with Firefox will be lost when beeing imported in buku. So when exporting the buku database as
.html
file and import it into Firefox the keywords will be lost.Using the Firefox function “Export Bookmarks to HTML…” from within the bookmark manager window will create a file content like this when only one bookmark has been created that includes a keyword assignment (same example like above):
Note the
SHORTCUTURL
property on the<A>
tag stores the defined keyword of the bookmark. Importing this file into buku viabuku --import path/to/bookmark.html
will now result in a data loss in form of all keywords.Feature request
What I'd like to request for buku is a new feature that allows to
-k
/--keyword
followed by one keyword.SHORTCUTURL
prop) when importing bookmarksUnfortunately my free time is limited, otherwise I'd like to get deeper into code of the buku and submit a PR. If there are any questions regarding this request feel free to ask 😄
The text was updated successfully, but these errors were encountered: