overdub

command module
v0.0.0-...-1b7915f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 4 Imported by: 0

README

overdub

Create new commands from your shell history or terminal.

TODO list

Initial release
  • Actually support making a dubbed function (basic)
  • Install subcommand
    • Manage added commands in env-var-pathed separate file
    • Add post-execution alias to source file of added fns when main command is run
    • NTS: Using sourced fns takes care of auto-complete previously in this list
    • Maybe: Add note to README about recommended auto-complete options for supported shells
Nice-to-haves
  • Support parameterization
    • Maybe use command parser lib to guess options for interactive edit?
  • Filter out unlikely commands (e.g. package managers) from suggestions list
  • Limit history pull to sane number for speed (500?)
  • Dedupe commands to choose from
  • fzf style search for selecting
  • Comment annotations to edit
    • Serialized original command?
    • Parse back persisted fn for edit

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package history supports reading and parsing history of the host shell
Package history supports reading and parsing history of the host shell

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL