superxcgm / xcShell

Your own shell
1 stars 1 forks source link

`autojump`, memorize user cd history and jump with blur search. #55

Open superxcgm opened 3 years ago

superxcgm commented 3 years ago

Epic

Process

Description

Shell should able to remember some directories that user frequently access, and navigate user to that directory by using j command. If user quit shell and run shell again, shell should not lost it's memory. You can checkout more information on https://github.com/wting/autojump.

AC

  1. Behave like cd Given: User current in some directory, for example: foo, and have sub directories a, b When: User type j a and hit <Enter> Then: shell should change working directory to directory a

  2. Quick access Given: User usually go to some directory, for example: foo, and currently in home directory ~ When: User type j foo and hit <Enter> Then: shell should change working directory to directory foo

  3. Quick access with fuzzy match Given: User usually go to some directory, for example: foo, and currently in home directory ~ When: User type j fo and hit <Enter> Then: shell should change working directory to directory foo

superxcgm commented 2 years ago

QA

functional test cd history should not write to user cd history file 🙅‍♂️

image

  1. Behave like cd Given: User current in some directory, for example: foo, and have sub directories a, b When: User type j a and hit <Enter> Then: ✅shell should change working directory to directory a

  2. Quick access Given: User usually go to some directory, for example: foo, and currently in home directory ~ When: User type j foo and hit <Enter> Then: ✅shell should change working directory to directory foo

  3. Quick access with fuzzy match Given: User usually go to some directory, for example: foo, and currently in home directory ~ When: User type j fo and hit <Enter> Then: ✅shell should change working directory to directory foo