zfind

Crates.iozfind
lib.rszfind
version0.1.5
created_at2024-12-14 09:50:57.33747+00
updated_at2024-12-18 05:28:51.340647+00
descriptionA tool for zsh which provides easy access to your previous commands
homepagehttps://itsmehecker.github.io/zfind/
repositoryhttps://github.com/itsmehecker/cargo-cult
max_upload_size
id1483025
size33,124
Vaishnav Sandeep (itsmehecker)

documentation

README

zfind

Project Overview

The goal of this project is to provide a way for users to find their previously used commands fast and easily

PS I added clip and pbcopy alr in the code so if you wanna re use it for maybe .bash_history/equivalent for windows you can just changing the file name would be enough

Features

  • detects the .zshfile
  • displays multiple options
  • automatically copies it to your clipboard for access
  • fast as its made in rust
  • uses dirs-next
  • finds the bash_history file and creates a .history_config for with your prefered choice
  • do keep in mind you can use any terminal with this as long as the commands don't have a timestamp (EXTENDED_HISTORY) on your .rc file like it has on zsh (turned off by default)
  • if you would like to switch editors you could try editing the .history_config with nano/vim and change it
  • bash for using bash and zsh for using zsh.
  • removed duplicates

To do's

  • adding support for other terminals (prob not coz I don't wanna add extra lines of code for just nothing)
  • ignoring timestamps so it works with devices with (EXTENDED_HISTORY/APPEND HISTORY TURNED ON)

Build

To build the project, clone the repository and navigate to the project directory:

git clone https://github.com/itsmehecker/cargo-cult.git
cd cargo-cult
cargo build

To install from cargo

cargo install zfind

Usage

for ppl who install it with cargo

zfind <snippet>

or for ppl who build it (haven't added to path)

cargo run <snippet>

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

Commit count: 17

cargo fmt