Comments (3)
I'm not sure what the correct behavior for an ambiguous prefix is. I think the correct thing would be to say, for example:
$ goto fo
goto error: ambiguous alias fo
foodata /u/ddrucker/dmdenv/data/serial/foo/main
foo /u/ddrucker/dmdenv/private_sand/foo/mp
$
rather than just guessing.
from goto.
Hi @dmd
goto
expects the exact alias literal to be passed in order to navigate to the underlying directory.
If user executes:
goto fo
and there is an alias named fo
then nothing should be displayed and user should be navigated to fo
's registered directory regardless of the existence of other aliases starting with fo
or not.
If there is no fo
alias then the default error message for unregistered alias will be displayed.
Regarding autocompletion, executing goto fo
will take user to the underlying directory. If instead of executing the command, user presses the <tab>
key then the completion mechanism will display all options (including fo
, foodata
) which is the default completion behaviour.
I'm closing this issue but feel free to re-open it if you need more clarifications.
Thank you for reporting
from goto.
Right. That's the behavior modification I was thinking would be nice - to be able to just say "goto fo", and if and only if there was exactly one alias matching /^fo.*$/, then navigate to that alias without the need to hit tab for autocomplete.
But if you don't think that's a good idea, that's fine.
from goto.
Related Issues (20)
- zsh: command not found: compdef HOT 5
- Add colors to the list command
- OSX doesn't install to path HOT 19
- bash-completions breaking macOS HOT 4
- OSX: The command does not cd to that directory HOT 3
- On zsh, goto is unable to create aliases if ~/.goto does not exist HOT 1
- Partly not working on OSX 10.13.6 HOT 9
- Windows support? HOT 8
- Install not working Ubuntu HOT 2
- How to create an alias for goto itself? HOT 3
- Goto breaked after update to 1.2.4 HOT 1
- goto does not work for me on MacOS 10.15 HOT 14
- Storage of config file should use XDG_CONFIG_HOME if configured HOT 2
- Goto not working when in WSL and also using zsh HOT 3
- Issue in <TAB> autocomplete HOT 1
- Bug (Minor) (Linux): Does not check for ~/.config directory HOT 2
- Question: brew package of goto is out of date HOT 1
- Swallowing stderr breaks output of direnv
- goto --expand not return 1 on error
- Fish shell support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goto.