Support prompt expansions
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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