Giter Site home page Giter Site logo

bukubrow-host's People

Contributors

dragonmaus avatar farzadmf avatar osolmaz avatar samhh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bukubrow-host's Issues

Support large Buku databases

See here: The maximum size of a single message from the application is 1 MB.

The 4GB limit going the other way is large enough that we can just ignore it.

Pagination of all returning payloads may be the simplest solution. Alternatively we could split the payload into 1MB chunks and require the consumer on the other end to concatenate and parse them.

Unable to add new bookmarks in Firefox

Hi,
I've updated to version bukubrow 5.4.0 and now I cannot add new bookmarks entries.

This issue happens in Firefox but not in Chrome. I'm reporting here because I've no installed a new version of bukubrow-host.

However I can edit and delete entries.

Firefox version is 94.0 (64-bit) and bukubrow-webext is 5.0.3.0.

If you need more information I could provide it.

Thanks in advance!
SB

New flags to faciliate fast dmenu/rofi/similar access to Buku database

I currently have the following bound to a hotkey in my WM config: buku -p -f 3 | rofi -dmenu -p bookmark | cut -d ' ' -f 1 | xargs --no-run-if-empty buku -o

Unfortunately there's a lot of latency before it responds, presumably because it's written in the interpreted language Python.

Let's add flags to recreate this behaviour at lightning, compiled, Rust speed!

Two approaches:

  1. Recreate the Buku flags faithfully... this would probably be a lot of needlessly duplicated work.
  2. Add two new flags specific to this use-case, -l/--list and -o/--open.

BSD Support

Just wondering if it is possible to build with OpenBSD. I could try to build using the darwin flag...

`cargo install` fails, `cargo build` succeeds

error[E0308]: mismatched types
  --> src\cli.rs:93:34
   |
93 |                 .value_delimiter(",")
   |                                  ^^^ expected `char`, found `&str`

For more information about this error, try `rustc --explain E0308`.
error: failed to compile `bukubrow v5.3.0 (...\bukubrow-host)`, intermediate artifacts can be found at `...\bukubrow-host\target`

Caused by:
  could not compile `bukubrow` due to previous error

Apparently, cargo install pulls in the newest semver-matching version of all dependencies, instead of strictly respecting Cargo.lock.

In clap-v3.0.0-beta.4, the syntax of Arg.value_delimiter was changed, and due to the strange non-locked default behaviour of cargo install, this version is used instead of the beta.2 version specified in the lockfile.

A temporary workaround is to use cargo install --locked. Updating the lockfile (using cargo update) will provide a more permanent fix.

Investigate if Buku is actually a dependency

Odd as it may sound, Buku may not technically be a dependency of this project beyond the creation of its database. Given how many dependencies Buku pulls in on the AUR, this may be something to investigate...

macOS regression: Unable to locate buku database

Thanks so much for creating this tool. It works like a charm on my linux box but I'm having issues on my Mac.

The host compiles without error but when executed simply reports "Failed to locate Buku database.". The buku command works just fine.

Sadly, I'm not familiar enough with rust to submit a patch.

Cheers

Warning: trait objects without an explicit `dyn` are deprecated

I downloaded the code from master (461b28e), compiled and configured with firefox correctly. However there are some warnings that probably will be errors in the future.

Warnings:

Compiling bukubrow v5.0.0 (/home/XXX/bukubrow-host-master)
warning: trait objects without an explicit `dyn` are deprecated
  --> src/buku/database.rs:85:39
   |
85 |                         &bm.flags as &ToSql,
   |                                       ^^^^^ help: use `dyn`: `dyn ToSql`
   |
   = note: #[warn(bare_trait_objects)] on by default

warning: trait objects without an explicit `dyn` are deprecated
   --> src/buku/database.rs:101:42
    |
101 |                         &bm.metadata as &ToSql,
    |                                          ^^^^^ help: use `dyn`: `dyn ToSql`

    Finished release [optimized] target(s) in 1m 56s

Rust version:

$ rustc --version
rustc 1.37.0

Failed to install host for Firefox: Unrecognised operating system.

I get the following error on step 4 of the Installation section of the readme:

bukubrow-linux-x64 --install-firefox
Failed to install host for Firefox:
Unrecognised operating system

I also noticed during step 2 that this message was displayed:

cargo build --release --target=x86_64-unknown-linux-gnu

Thanks for any help in advance!

Use with Brave browser & possible workaround

I decided to see if I could get this and the associated web extension running from Brave.

Since Brave is chromium based, I tried running bukubrow --install-chromium . This does not fully work.

Copying ~/.config/chromium/NativeMessagingHosts/com.samh.bukubrow.json
to the ~/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/ directory
appears to fix the issue.

Failed to link

   Compiling bukubrow v5.1.0 (/home/me/yay/bukubrow/src/bukubrow-host-5.1.0)
warning: trait objects without an explicit `dyn` are deprecated
  --> src/buku/database.rs:85:39
   |
85 |                         &bm.flags as &ToSql,
   |                                       ^^^^^ help: use `dyn`: `dyn ToSql`
   |
   = note: `#[warn(bare_trait_objects)]` on by default

warning: trait objects without an explicit `dyn` are deprecated
   --> src/buku/database.rs:101:42
    |
101 |                         &bm.metadata as &ToSql,
    |                                          ^^^^^ help: use `dyn`: `dyn ToSql`

error: linking with `cc` failed: exit code: 1
  |

.... whole bunch of errors

          collect2: error: ld returned 1 exit status

error: aborting due to previous error; 2 warnings emitted

error: could not compile `bukubrow`

To learn more, run the command again with --verbose.

Specify custom install location

I have two chromiums with different user-data-dir locations. The same feature also exists for other browsers too. It would be nice if one could optionally specify a custom data dir location to use for the installation process.

Was Edge installation removed?

Hi @samhh

I recently noticed that, for some reason, my Edge (Dev Channel) on Linux has stopped working and is giving me an error:
image

I decided to re-install it, but when I do bukubrow --help, I don't see the Edge option anymore ๐Ÿค”

bukubrow 5.2.0
Sam A. Horvath-Hunt
Bukubrow native messaging host installer

USAGE:
    bukubrow [FLAGS] [OPTIONS]

FLAGS:
    -h, --help                Prints help information
        --install-brave       Install the native messaging host for Brave
        --install-chrome      Install the native messaging host for Chrome
        --install-chromium    Install the native messaging host for Chromium
        --install-firefox     Install the native messaging host for Firefox
        --install-vivaldi     Install the native messaging host for Vivaldi
    -l, --list                Print all bookmarks in a list to stdout
    -V, --version             Prints version information

OPTIONS:
    -o, --open <ID[,ID]>    Open bookmark(s) in the browser by ID

And the output of bukubrow --version is bukubrow 5.2.0

So, I had a couple of questions for you:

  • Where is the --install-edge option? ๐Ÿ™‚
  • When I see an error in the extension, how can I debug it? (sorry, I think this is a question more related to Chrome Extensions rather than bukubrow, but I'd appreciate if you help ๐Ÿ™ )

--open blocks terminal

Personal repro:

$ xdg-settings set default-web-browser vimb.desktop
$ bukubrow -o 207

Doesn't seem to affect Firefox, at least when some instances are already open.

Buku (buku -o 207) doesn't suffer the same issue.

Never panic

Always provide a helpful error message back to the WebExtension no matter what's gone wrong.

Once this is complete, corresponding work will need to take place to utilise it in the WebExtension.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.