-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
ToDo list #343
Comments
this is finished |
anyone ever have experience database with empty record but but not 0 filesize? i tried open it with db browser for sqlite but it also show no records |
The sqlite operation used is |
is that empty database at first or there is already records in that? $ ll ~/.local/share/buku/bookmarks.db
-rw-r--r-- 1 q q 10907648 Jan 2 00:03 /home/q/.local/share/buku/bookmarks.db that is the file (10.4mb), yet no record either from buku or from sqlite db browser |
There were records at first. I have around 477 bookmarks in my personal file. I think it would be a better option to just remove the file instead of dropping the table. That would be fast and reclaim the space. Added to the ToDo list. Or maybe use the same code from |
A "-r" reverse sort option for import (and export) could be useful to maintain chronology. |
reverse sort based on which criteria? |
Date added. |
|
Entry/record order could work as well (atleast it is enough for my use case). Pinboard export maintains chronology of entries in descending order of most recent, and when imported to buku it is reversed. |
Please read the introduction: no hidden history, obsolete records, usage analytics or homing |
So would bookmark entry order falls under obsolete records? I don't follow. Buku already records and surfaces that. Sorry, I may have miscommunicated what I intended. |
No, the date added. It's possible to figure out patterns from that. Generally speaking, we leave out any king of usage history. |
You mentioned "chronology". If you are asking for just printing in reverse order, I think you can add a filter to do that while listing. If you really need it, please raise the PR. |
Thoughts on adding type hints? |
while it could be done, it is better to put the effort into making new feature |
Please feel free to add to the ToDo list. |
What's the best way to chat? Seems like the gitter.im instance is inactive, and I'm not sure what way works best for you. |
I pinged you now. I didn't get the noti from gitter. |
A Chocolatey package would be awesome. I might have some time to try to build one some time in 2019... (Packed calendar currently.) |
@dertuxmalwieder whenever you have the time! |
@rachmadaniHaryono can you please add the test cases for |
@jarun python 3.4 eol is last month also there is warning from circleci
until when do we support it? |
I'll remove it. :) |
@jabagawee i started added annotation on the pr and some function/method on buku it is not perfect yet but it is a start |
Would it be possible to add a bookmark cleanup function of sorts (e.g. find dead links)? Also, why doesn't the interactive prompt accept the same arguments as running Buku directly? |
How about is the url is slightly modified? The "link" from one entry to the other would be missing. Tags relate bookmarks, but they do not point other specific entries. |
Can you please elaborate? |
The point is to create a "brain" of bookmark entries linked among them, where every bookmark entry has a description and internal links to other bookmark entries. A bookmark entry may have tags, but its tags do not work as pointers to other named bookmark entries (they would refer to every entry that has that tag). Is my point clearer? Anyway it is just an idea. |
I think it will make the solution over-complicated. We have extensive search facilities already and I am of the opinion that the types of search is more than adequate to find a bookmark. @rachmadaniHaryono what do you think? |
for buku itself imo kinda hard due to terminal user interface for bukuserver it may have work by creating custom text-to-html, which will link any matching text to another entry (e.g. reddit |
Does bukuserver have a Grid View? Or even something like Windows' File Explorer List View? The concept of an offline bookmark manager is one that I love because most alternatives are webapps intent on using your data and/or being a social platform, but I need an alternative because the list-based approach used by browsers to manage bookmarks doesn't show enough bookmarks at once, making managing difficult. |
@rachmadaniHaryono do you have any plans for a grid-based view? |
while it is possible, i'm not good enough in html to hack flask admin that. i may try but i will not promise anything but i will love if bukuserver can what shiori does https://github.com/go-shiori/shiori
https://i.stack.imgur.com/BW7xN.png i kinda confused with this because i have no idea how does each item will look like
increase bookmarks per page config here https://github.com/jarun/buku/tree/master/bukuserver#configuration |
Yeah it'd be nice. I tried shiori but it just offers nothing when it comes to actual management.
Wdym? You mean you're not sure how to implement the max length of each column list? You can truncate it to a variable limit. |
so just url (or shortened one or click/hover to see full url) on single line. that maybe simple enough |
Title, then URL displayed on hover |
Any idea on using different database-files? OK, found it in the operational notes. It was not mentioned in the output of --help. |
Yes, it is intended. Use at your own risk. |
I think -d switch to delete the whole database is rather a risk to destroy the data than -db to use a different database-file. |
I use bookmark folders extensively on firefox (rarely tags) and use the "Add parent folder names as tags" option when importing automatically from firefox. I am interested in preserving my folder tree structure and have it reflected in the sequence of comma separated tags. I therefore removed Is there any side effects from doing this? Thanks for the great work! |
I am not sure. Never tested it this way. If your search results are fine maybe it works. |
Thanks for your reply. Actually my solution doesn't work as set() does not preserve the insertion order from the |
You can have this modification in your fork. At this stage of the project I do not expect too many changes so it shouldn't be difficult to merge at a later point. |
@jarun i want to update this page https://github.com/jarun/buku/wiki/Buku-as-a-library
>>> import buku
>>> buku.BukuDb.initdb(dbfile=None)
>>> buku.BukuCrypt.encrypt_file(iterations, dbfile=None)
>>> buku.BukuCrypt.decrypt_file(iterations, dbfile=None) NOTE: This flexibility is not exposed in the program. An example to use buku as library >>> import buku
>>> buku.__version__
'4.4'
>>> bdb = buku.BukuDb(dbfile='temp.db')
>>> bdb.get_rec_all()
[]
>>> bdb.add_rec(url='https://example.com', title_in='example title', tags_in='tag1', desc='example desc')
1
>>> bdb.get_rec_all()
[(1, 'https://example.com', 'example title', ',tag1,', 'example desc', 0)]
>>> # id, url, title, tags, description, flags
>>> bdb.add_rec(url='https://example.com/1.jpg')
1
>>> bdb.get_rec_all()
[(1, 'https://example.com', 'example title', ',tag1,', 'example desc', 0),
(2, 'https://example.com/1.jpg', None, ',', '', 0)]
>>> # Note: if record don't have tags, it will return ',' (comma character) The bukuserver has several wrapper web APIs. Feel free to update if you need them. changes
|
Sure thing! |
On fedora 33, copying a link in a search (c #id) throws this error: The reason I want to copy is to be able to open in a browser other than Firefox (or the browsers listed in the Python webbrowser controller). Perhaps this is too much of a pipe dream, but I would like to choose a different browser with one letter. For example: |
You may have to install Switching browsers on the fly is not supported. |
Thanks! That worked. I had also installed buku from fedora dnf and the code was older. I looked at the file in /usr/bin/buku and the "wl-copy" info was not there yet. So I downloaded the latest from the buku github repository and replaced the buku file. And I installed wl-clipboard from the fedora's package manager. Now copy works. Thanks. |
Continued from #268.
Notes
The list below is a growing one. While suggesting new features please consider contributing to
Buku
. The code is intentionally kept simple and easy to understand with comments. We'll be happy to assist any new contributor. We need your help!Some of the fresh-baked features may not have been released yet. Grab the master branch for those.
Identified tasks
--preserve
to ignore specific fields during auto-update [see issue Preserve some preexising data during update operation #327]exportdb()
API (@rachmadaniHaryono)importdb()
] (thanks @ckolumbus)-n
with-p
(thanks @jpdasma)--export
HTML <meta> Tag
a
andb
but notc
andd
) (thanks @saltyCatfish)googler
/ddgr
- omniprompt keyO
profiles.ini
(see Firefox auto-import breaks if profile name does not end with .default #212, thanks @alex-bender)--format
in search results (ref, thanks @mosegontar)importdb()
]The text was updated successfully, but these errors were encountered: