* bjomarks-gui — bookmarks in a window Bjomarks on the desktop: a window for [[file:../bjomarks/Readme.org][bjomarks]], made with [[file:../bjogui/Readme.org][bjogui]] and drawn with AvaUnion, KDE's look. [[file:docs/window.png]] #+BEGIN_SRC sh bjo run . [SHARED [LOCAL]] #+END_SRC - ~SHARED~ is the folder that the devices share, through a file syncer or a mounted WebDAV share: where the vault is. Else ~$BJOMARKS_SHARED~, else the folder chosen on the first screen the last time, else ~~/Sync/bookmarks~. The folders added on the first screen are saved in ~~/.config/bjomarks/settings.json~. The list of them is there only when neither ~SHARED~ nor ~$BJOMARKS_SHARED~ is given. - ~LOCAL~ is this device's own folder: ~$BJOMARKS_LOCAL~. Else each shared folder has one of its own, in ~bjomarks/vaults~ in the user's data folder (~~/.local/share/bjomarks/vaults~ on Linux), so that two shared folders are two vaults. See ~device-folder~ in bjomarks. - ~BJOMARKS_LOOK=fluent~ draws the window with Avalonia's Fluent theme instead of AvaUnion. ** Using it [[file:docs/unlock.png]] The first screen asks for the password. It opens this device's bookmarks, joins those in the shared folder when this device has none, or makes new ones when the shared folder has none: then the password is asked twice. Argon2id and the first sync run in the background. The password box has the keyboard when the window opens, and ~Enter~ in it opens the vault, or joins it. For a new vault, ~Enter~ in the first box goes to the second, and ~Enter~ in the second makes the vault. *More than one vault.* Each shared folder holds bookmarks of their own, with a password of their own, as on Android. The first screen lists the shared folders added, by the names of the folders, and the first screen is the one for the folder chosen: - *Add new…*, at the end of the list, asks for a folder. A folder with a vault is joined, and in an empty one a new vault is made. - *Remove from list* takes the folder chosen out of the list, when there are others. Its files stay, in the shared folder and on this device: adding the folder again opens its bookmarks again. - *Other bookmarks…*, in the toolbar of the open vault, syncs it, closes it, and goes back to the first screen. - The folder used last is opened at the next start. A folder used at the first start, before any was added, is in the list once it opens. Each shared folder has a device folder of its own (see ~device-folder~ in bjomarks). With ~LOCAL~ or ~$BJOMARKS_LOCAL~ given, there is one device folder, and so one vault: it belongs to the vault it was made or joined with, and a folder with another vault does not open. An empty folder then moves the vault there: it opens from this device's files, and its files are written in the new folder. | Doing | How | |---------------------------+---------------------------------------------------------| | Add a bookmark | ~Ctrl+M~, or *New* in the toolbar | | Import Firefox's bookmarks | *Import*, in the toolbar: choose Firefox's JSON backup | | Edit the chosen bookmark | ~Ctrl+E~, or a right click on it: *Edit* | | Open it in the browser | ~Enter~, or a right click on it: *Open* | | Open it privately | a right click on it: *Open in private window* | | Copy its address | a right click on it: *Copy address* | | Remove a bookmark | a right click on it: *Remove*. No key removes | | Bring back what was removed | ~Ctrl+Z~: the last removed first, again for the one before | | Fetch a page's title | *Fetch title*, beside the title in the dialog | | Fetch an archive link | *Fetch archive*, beside the archive link in the dialog | | Search | type in the search box: the list is filtered as you type | | Search by tag | ~t:rust~ in the search box | | Clear the search | ~Escape~ | | Go to the search box | ~Ctrl+S~, from anywhere in the window | | Go to the first bookmark | ~Ctrl+N~ in the search box | | Go to the next one | ~Ctrl+N~ in the list | | Go to the one before | ~Ctrl+P~ in the list; on the first, back to the search box | | Save or cancel the dialog | ~Enter~, ~Escape~, or its buttons | | Show the help | ~F1~, or *Help* in the toolbar; ~Escape~ closes it | | Open other bookmarks | *Other bookmarks…* in the toolbar | No key is a single letter, so each acts in the search box too. ~Ctrl+E~ and ~Enter~ act on the chosen bookmark, and do nothing when none is chosen. ~Ctrl+Z~ in the search box brings back a bookmark when a removal (or the bringing back of one) is the last thing done; after you type in the box, it undoes the typing, as in any text box. So ~Ctrl+Z~ works at once after a removal of the last bookmark that the list shows, when the keyboard goes to the search box. *The help* is a window of its own, with the keys and a few words on searching, the dialog and importing: [[file:docs/help.png]] [[file:docs/edit.png]] *The search* shows a bookmark when each word of it is in the bookmark's title, its address or its tags, as a word, the start or a part of one, or with a typo: ~rust book~ finds /The Rust Programming Language/ at ~https://doc.rust-lang.org/book/~. ~t:rust~ is the tag "rust", the whole tag; ~d:github.com~ the domain; ~a:2011:2012-06~ the days added; ~"two words"~ exact text; and ~-~ before any of them excludes it. The best matches come first. Archive links are not searched. All of it is in (bjomarks search), and in the help (F1). *Titles.* The list shows a bookmark's title, or its address when it has none. The line under it is as on Android: the day it was added, the address, the tags, and "archived" when it has an archive link. A thin line is between the bookmarks. *Fetch title*, beside the title in the dialog, fetches the page at the address and puts its title in the field, to keep or change before *Save*. While it fetches, the button turns: [[file:docs/fetching.png]] Nothing else fetches a title: not saving, not opening, not syncing. When the page has no title, or cannot be fetched, the dialog says why. Typing in the address or the title while a fetch runs stops waiting for it, and closing the dialog drops it. ~(bjomarks title)~ does the fetch: only ~http~ and ~https~, at most 512 KiB, 10 seconds. A fetch tells the site about the bookmark: the site sees a request from this machine. *Archive links.* *Fetch archive*, beside the archive link in the dialog, asks the Wayback Machine of the Internet Archive for the latest snapshot of the page at the address, and puts the snapshot's address in the field, as ~https://web.archive.org/web/