#recently #used #xbel

recently-used-xbel

Parse the ~/.local/share/recently-used.xbel file

1 stable release

1.0.0 Mar 27, 2022

#12 in #recently

Download history 402/week @ 2023-12-06 422/week @ 2023-12-13 450/week @ 2023-12-20 383/week @ 2023-12-27 390/week @ 2024-01-03 496/week @ 2024-01-10 501/week @ 2024-01-17 667/week @ 2024-01-24 661/week @ 2024-01-31 570/week @ 2024-02-07 973/week @ 2024-02-14 711/week @ 2024-02-21 663/week @ 2024-02-28 579/week @ 2024-03-06 716/week @ 2024-03-13 1271/week @ 2024-03-20

3,323 downloads per month
Used in 2 crates (via onagre-launcher-plugins)

MPL-2.0 license

10KB

recently-used-xbel

Rust crate for reading the contents of ${HOME}/.local/share/recently-used.xbel.

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let recently_used = recently_used_xbel::parse_file()?;

    for bookmark in recently_used.bookmarks {
        println!("{:#?}", bookmark);
    }

    Ok(())
}

License

Licensed under the Mozilla Public License 2.0. Permissions of this copyleft license are conditioned on making available source code of licensed files and modifications of those files under the same license (or in certain cases, one of the GNU licenses). Copyright and license notices must be preserved. Contributors provide an express grant of patent rights. However, a larger work using the licensed work may be distributed under different terms and without source code for files added in the larger work.

Contribution

Any contribution intentionally submitted for inclusion in the work by you shall be licensed under the Mozilla Public License 2.0 (MPL-2.0). It is required to add a boilerplate copyright notice to the top of each file:

// Copyright {year} {person OR org} <{email}>
// SPDX-License-Identifier: MPL-2.0

Dependencies

~0.9–1.9MB
~37K SLoC