Skip to content
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

CDPATH equivalent functionality for web terminal #86

Open
2 tasks
shivanshs9 opened this issue Jan 24, 2020 · 0 comments
Open
2 tasks

CDPATH equivalent functionality for web terminal #86

shivanshs9 opened this issue Jan 24, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers Vue.JS

Comments

@shivanshs9
Copy link
Member

shivanshs9 commented Jan 24, 2020

Having an easier way to navigate via the terminal to frequently-visited pages would be better for UX. For that, we could develop a similar functionality to CDPATH from zsh shell.
The gist of the approach is that if the given input doesn't match any command (outputs "Command not found."), then we could search for a directory with the given input as the name. If such a directory exists, then it should automatically perform the cd action with the given directory as an argument to cd, else command not found.
Since the terminal doesn't have support for env variables right now, the issue is broken down to two separate tasks.

Tasks:

  • Search for input directory name in the current directory.
  • Use the CDPATH env variable to search for the input directory name from the given directory paths in the variable

References:
https://jcode.me/cdpath-with-zsh/

@shivanshs9 shivanshs9 added good first issue Good for newcomers enhancement New feature or request Vue.JS labels Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers Vue.JS
Projects
None yet
Development

No branches or pull requests

1 participant