Skip to content
platonvPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Makef - Makefile Fuzzy Finder

A command-line fuzzy finder for Makefile targets built with Go and Bubble Tea.

Features

  • Fuzzy search: Type to filter through Makefile targets
  • Interactive selection: Use arrow keys or vim-style navigation (j/k)
  • Target descriptions: Shows comments above targets as descriptions
  • Execute on selection: Press Enter to run the selected target
  • Custom Makefile support: Specify a custom Makefile path

Installation

git clone <repository-url>
cd makef
go build -o makef

Usage

Basic usage (uses ./Makefile)

./makef

With custom Makefile

./makef /path/to/your/Makefile

Controls

  • Type: Filter targets by name
  • ↑/k: Move up in the list
  • ↓/j: Move down in the list
  • Enter: Execute the selected target
  • Backspace: Delete characters from search
  • q/Ctrl+C: Quit

How it works

  1. Parses the specified Makefile (or ./Makefile by default)
  2. Extracts target names and their descriptions (from comments above targets)
  3. Provides an interactive fuzzy finder interface
  4. Executes the selected target using make -f <makefile> <target>

Target descriptions

The tool automatically picks up comments that appear directly above target definitions:

# This comment will be shown as the description
build:
	go build -o app

# Run all tests
test:
	go test ./...

Examples

Given a Makefile with targets like build, test, clean, install:

  • Type bu to filter to build
  • Type te to filter to test
  • Use arrow keys to navigate between filtered results
  • Press Enter to execute the selected target

Requirements

  • Go 1.23 or higher
  • make command available in PATH

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages