Skip to main content

A command-line fuzzy menu keyed based on full sentences

Project description

sentence-menu

A command-line fuzzy command-menu keyed with full sentences which runs command.

This is unreviewed AI-generated code. It will likely become more reviewed if anyone uses it.

Motivation

I want to find snippets to do things based on what I have done before. I use the snippet framework I wrote, zshnip, but sometimes I want to be lazy and use full sentences.

Alternatives

navi is a menuing system with fuzzy search and tags which focuses on commands to run, but focuses on cheat sheet files (supporting several). I dislike editing files and if I have to edit a file to add a command I often won't do it.

fzf provides a fuzzy menu but is more a command line tool to build thigns than a complete solution.

rofi is another fuzzy menuing system designed for gui environments. It can automatically search your path for commands. Most desktop environments, like KDE or Gnome, provide some sort of fuzzy search.

I also sometimes use Obsidian to keep track of commands related to a topic. This can work well, but not for things I want to run quickly. I have a shortcut to popup Obsidian. You could use emacs org-mode for similar purposes.

You could also use an LLM.

Installation

pipx install sentence-menu

Usage

Interactively add a command: sentence-menu add

Interactively edit an entry: sentence-menu edit

Run a command: sentence-menu

Print a command to standard out: sentence-menu echo

About me

I am @readwithai. I make lots of small tools like this. I also make tools for reading with and without AI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentence_menu-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sentence_menu-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file sentence_menu-1.0.0.tar.gz.

File metadata

  • Download URL: sentence_menu-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sentence_menu-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3ac00a21efced07ccc79d26e462730ecc0e7a136822809b0a25a0f5cca46d2cd
MD5 b80b20793f8a454e6a681301be427508
BLAKE2b-256 291b7d13c9e43585c7452c720f9b7d67a33881750fceb0c846ca20945597cdef

See more details on using hashes here.

File details

Details for the file sentence_menu-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sentence_menu-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sentence_menu-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed43427b78c16a132af77b190919eeb305ac75d5c5bf9ffee6eaafcaaaf6b5d2
MD5 9d7d8c955ad4463cdf8ff8b15bea6da4
BLAKE2b-256 73ab66e1f59c32903d6320576f2e032416a633dcfb244710f8d4f8f7f72fa605

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page