Skip to content

directory stuff #6

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

Open
Jaymon opened this issue Jul 15, 2016 · 1 comment
Open

directory stuff #6

Jaymon opened this issue Jul 15, 2016 · 1 comment

Comments

@Jaymon
Copy link
Owner

Jaymon commented Jul 15, 2016

I think the qcd command should become a little more fully featured, so:

$ qcd recent

Would display the most recent directories

$ qcd saved

Would display the ones that are explicitly saved (which is current functionality). And

$ qcd visited

would display the most visited.

So the idea would be to have qcd run every time the prompt is printed and then track the directories.

Directories could be tracked by greping for the directory in a file with format

N /path

So you would grep and cut to find N, then increment it and then append that path back on the bottom (removing it from anywhere else in the list by using grep -N). So to display the most recent you just tail the file, to display the most you just sort the file.

@Jaymon
Copy link
Owner Author

Jaymon commented Aug 17, 2017

$ qcd git

move up the directory tree until you find the folder with a .git folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant