#recently #used #xbel

recently-used-xbel

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

2 stable releases

1.1.0 Aug 26, 2024
1.0.0 Mar 27, 2022

#146 in GUI

Download history 734/week @ 2024-07-29 1507/week @ 2024-08-05 967/week @ 2024-08-12 445/week @ 2024-08-19 537/week @ 2024-08-26 306/week @ 2024-09-02 918/week @ 2024-09-09 1005/week @ 2024-09-16 1363/week @ 2024-09-23 1158/week @ 2024-09-30 952/week @ 2024-10-07 805/week @ 2024-10-14 503/week @ 2024-10-21 519/week @ 2024-10-28 530/week @ 2024-11-04 431/week @ 2024-11-11

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

MPL-2.0 license

20KB
326 lines

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

~5–16MB
~148K SLoC