Skip to content

BoolPurist/Rust_Fav_Fold

Repository files navigation

Folder Favorite

CLI tool to save and see paths with labels. The paths are saved in a JSON file at the typical app data location of your os.

Indented to be used on Windows, Linux and Mac. Functionality only confirmed under Linux with the distribution Fedora so far.

Features in more detail

  • Can save paths with label.
  • Can copy saved paths into OS clipboard via option flag.
  • Shows with colors which paths exits on file system
  • Can remember files with a certain name.
  • Can rename label for a path
  • Can remove saved paths by providing a label. Does not remove the folder of file under the path.
  • Can remove all dangling paths. Dangling means that a path does not exit anymore

Installation

  1. Install rust like described here (Link)[https://www.rust-lang.org/tools/install]
  2. Clone this repository via git clone
  3. Go into clone repository
  4. Execute the following command
  5. You might need to restart your shell so the command "folder_favorite" is available.
cargo install --bin folder_favorite --path "."

Usage

This CLI app has subcommands to execute action like saving or showing a path. Paths are created and addressed via a label.

Logging

You can adjust the filtering of app's logging by changing the environmental variable "FAVORITE_FOLDER_LOG" according to the documentation .

Examples

Create a path with label

Creating a path to "/home/dummy" with label "some_path"

folder_favorite set some_path /home/some_path

Show all saved paths.

In this example the path /home/dummy under the label "some_path" and the path /home/awesome under label "another_path" are saved.

folder_favorite get

Output

some_path     /home/dummy
another path  /home/awesome

Development

See this document

License

Licensed under either of

at your option.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published