feat(history): support N-th history index in substitution #2
Reference in New Issue
Block a user
Delete Branch "feat/hist-sub"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR enhances the interactive history substitution function (
Ctrl+F) to support an optional history index.Changes:
old/new/index(e.g.,foo/bar/3) to perform substitution on the 3rd most recent command in history.sudoto the last command.Verified with local testing.