idank / idank/explainshell

Support prompt expansions

Open
#326 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
14.2k
Forks
851
PR merge metrics
No merged PRs in 30d

Description

Support prompt expansions

Examples

!! - all items, repeat the previous line
!* - just args
!:3  just 3rd item
!^      first argument
!$      last argument # or hit esc period
!*      all arguments
!:2     second argument

!:2-3   second to third arguments
!:2-$   second to last arguments
!:2*    second to last arguments
!:2-    second to next to last arguments

!:0     the command
!:-2  first 2 items

# substitutions
^WORD1^WORD2^
!!:s/WORD1/WORD2

!!:gs/old/new/ or :&

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the command-line parsing or prompt-expansion entry points and any tests covering history or argument expansion. Compare the existing behavior with each example in the issue; done means the listed expansions and substitutions are supported and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, shell
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.