-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature #15
Comments
This doesn't seem very reasonable to me. For |
@injust but can we have that, its 4 hours since i started racking my brains on this same qs, gave up, came to this page to create an issue, thought of looking here and there and found this, so is this possible? ok, @JumpIn-Git might not have explained the usecase properly, but: suppose i wanna go 5 levels below and print a file: muscle memory does: instead of: btw, is this even doable because i racked my brains for 2 hours, while also using chatGPT, when i wasnt able to get some answer, i used copilot, i used perplexity, then i gave up can came here (Gemini is utterly useless in coding and in general too) |
Why do you have this muscle memory in the first place? For 1 or 2 dots, you have to type the slash. This plugin doesn't affect those cases ( For 3+ dots, why do you want to omit the slash? IMO it feels unintuitive because it doesn't match the other cases. |
due to these aliases # below ones turned off in favour of puffer-fish plugin
# function ..
# cd ../
# end
# function ...
# cd ../../
# end
# function ....
# cd ../../../
# end
# function .....
# cd ../../../../
# end
# function ......
# cd ../../../../../
# end like: idk how to explain this, but i wanna type .... (any number of times) and do not waste that muscle memory to type that |
I also type You could fork and tweak https://github.com/nickeb96/puffer-fish/blob/master/functions/_puffer_fish_expand_dots.fish to work for your use case, but I have a feeling it wouldn't be accepted as a feature. |
im not that well acquainted with fish shell, but what i want, is that possible? becuase im not able to do it with chatgpt's help idk whats so hard for appending just 1 damn slash... if string match --quiet --regex -- '^(\.\./)*\.\.$' $split[-1]
commandline --insert '/..'
# ...
end
|
It's definitely possible, But you'll probably have to tweak the regex. |
ik but idk how to achieve it exacly, can you provide some pointers, and i can definitiely use chatgpt for the help |
Figure out what the regex is matching on, and go from there. That's all I can say without ruining all the fun. Also, what you want is fundamentally flawed. What would you type if you wanted |
why would you do this? if you want to open a file 2 levels below, you do |
What if my file is a dotfile/hidden file named |
what is |
I'm talking a literal file named |
ooohh i understand now, if i wanna do |
yep yep ig i should start typing |
When typing dots for a file path, eg typing ... will result in ../.. but i think it would be better if it was ../../ since you can still reference the path but also autocomplete a file without having to type a extra /
The text was updated successfully, but these errors were encountered: