-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
z: add -c
parameter to the command description
#5262
Conversation
Details: --- * add the `-c` parameter to go to a subdirectory of the current directory
The build for this PR failed with the following error(s):
Please fix the error(s) and push again. |
pages/common/z.md
Outdated
@@ -26,3 +26,7 @@ | |||
- Remove the current directory from `z`'s database: | |||
|
|||
`z -x .` | |||
|
|||
- Go to the directory that is a subdirectory of the current directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crs1138 it appears that z -c
is the equivalent of cd
. If (and only if) this is true, please apply this suggestion:
- Go to the directory that is a subdirectory of the current directory. | |
- Go to the directory that is a subdirectory of the current directory (equivalent of `cd`): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your feedback. I've applied the changes you requested. Not sure how to proceed now. Can I resubmit this PR or better to make a new one?
@crs1138 the CLA isn't working because the email address that you used for the commit (
†To change the email address of the last commit, run this command:
|
Details: --- * add the `-c` parameter to go to a subdirectory of the current directory
Details: --- * applied requested changes * committed with my an email matching my Github username
…mmand * 'z-command' of https://github.com/crs1138/tldr: Change `z` command description
@crs1138 Thank you. Now please sign the CLA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The man page says about -c
: restrict matches to subdirectories of the current directory
. But it seems to me that it's just cd
. 🤔
LGTM!
Not quite it can cd much deeper with a simple syntax: |
Hmm...I can't figure how to use $ pwd
/Users/me/a
$ tree
.
└── b
└── c
└── d
└── e
└── f
└── g
6 directories, 0 files
$ z -c g
$ pwd
/Users/me/a
$ z g -c .
$ pwd
/Users/me/a
$ Also, however I installed it, I have the manpage. |
Hmm, I used You gotta navigate to the |
That stands for frequently recent, it's not a typo. |
Ah I see, that works well! Thank you. Maybe the example description should be reworded. |
Ah, frecent is a thing I've seen around. It's an algorithm for ranking things. Firefox switched to it a while back for ranking items in the list of suggestions when you're typing into the address bar of the browser. We should keep the word as-is. Example further reading: https://github.com/johnsylvain/frecent |
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @crs1138!
Details:
-c
parameter to thez
command that enables user to go to a subdirectory of the current directorycommon/
,linux/
, etc.)