Coder Social home page Coder Social logo

wrth1337 / fzf-make Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kyu08/fzf-make

0.0 0.0 0.0 1.77 MB

A command line tool that executes make target using fuzzy finder with preview window.

License: MIT License

Rust 91.72% Nix 3.03% Makefile 5.25%

fzf-make's Introduction

fzf-make is a command line tool that executes make target using fuzzy finder with preview window.

License:MIT Latest Release

🛠️ Features

  • Select and execute a make target using fzf
  • Support include directive
  • (Scheduled to be developed) Support config file
  • (Scheduled to be developed) Command history

👓 Prerequisites

  • bat (In the future, we intend to make it work with cat as well, but currently it only works with bat.)

📦 Installation

macOS

Homebrew

You don't need to install bat because fzf-make will install it automatically via Homebrew.

# install
brew tap kyu08/tap
brew install kyu08/tap/fzf-make
# update 
brew update
brew upgrade fzf-make

Arch Linux

fzf-make can be installed from the AUR using an AUR helper. For example:

paru -S fzf-make

NixOS / Nix (package manager)

fzf-make can be run from the repository (latest version)

nix run github:kyu08/fzf-make

Or from the nixpkgs (channel >= 23.05)

nix run nixpkgs#fzf-make

Note You may need to enable experimental feature. In that case, execute the following command to enable them echo "experimental-features = nix-command flakes" | tee ~/.config/nix/nix.conf

OS-independent method

Cargo

cargo install fzf-make

💡 Usage

Run fzf-make

  1. Execute fzf-make in the directory include makefile(file name should be one of GNUmakefile, makefile, Makefile)
  2. Select make command you want to execute

Misc

Command Output
fzf-make --help fzf-make-help.png
fzf-make --version fzf-make-version.png
fzf-make ${some_invalid_command} fzf-make-invalid-arg.png

💻 Development

  1. Clone this repository
  2. Change the codes
  3. Run make run

To execute test, run make test(needs nextest). Or just run cargo test.

nix

Or you can use nix to create a developement shell with the project dependencies.

Within the repo root, execute the following command:

nix develop

👥 Contribution

  • Contributions are welcome!
  • If you have a Feature request, please create an issue first.
  • If you have added fzf-make to some package manager, please let me know. (or please send a PR to add how to install via the package manager in the README.md)
  • If you have any questions, feel free to create an issue and ask.

🗒 Related Article(s)

fzf-make's People

Contributors

kyu08 avatar orhun avatar adityaranjanjha avatar engineerakki avatar sigmanificient avatar

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.