feature request : search for abbreviations #90
Replies: 7 comments
-
Hi Mattias, I like your creativity! I am unfamiliar with fish abbreviations. Are they always stored in |
Beta Was this translation helpful? Give feedback.
-
Hi Patrick, Thanks! Fish abbreviations are essentially aliases done the fish way. An alias can be However, abbr's substitute "in place" so your history is a bit cleaner and IMO is a bit more clear whats going on, so it's easier to read. They are not always stored in this file name, so I should probably change that. Maybe I can grep for every instance of abbr in every file that ends with This could also be used to look at aliases, since I usually forget them when I am trying to learn them. with regards to the interoperability, do you have fd installed on your Mac? I am using fd-find from rust (because its faster and has simpler syntax) however I don't know how this would work on windows |
Beta Was this translation helpful? Give feedback.
-
Hi Matt,
That's a lot better than assuming the user always stores it in that exact file. However, I still think that's a non-starter due to
Sounds like a slightly rare but interesting case.
Yes, if you didn't know, fzf.fish requires
Why wouldn't it work on Windows? Overall I am a bit hesitant about adding this feature due to how rarely people will use it and how difficult it is to implement. But let me think about it more and get back to you! I really appreciate your enthusiasm and am sorry that I am telling you this now after you have already opened a PR. |
Beta Was this translation helpful? Give feedback.
-
Hi, no problem I enjoyed working on this for myself.
They should all be in one folder, the
I don't know how windows handles these things but usually nothing works on windows without extra work and edge cases. I totally understand, I do have an abbreviation for listing my abbreviations and I think thats just the best way currently so I will continue to use it. I will close it. |
Beta Was this translation helpful? Give feedback.
-
Hey Matt, thanks so much for understanding. I hate to see you lose all the work you excitedly pour down but at the same time it's also my job as the plugin author to defend against feature cruft. I hope you'll gain a lot from your experience and become a plugin author yourself!
Btw, I was studying the abbreviations command. Why don't you use |
Beta Was this translation helpful? Give feedback.
-
Of course. You being able to say No to unnecessary features is what makes this project so good. In the past couple of days I have used this maybe 100 times. It is so useful and I'm happy that I found it. I dont use abbr --list becuase it just shows the abbr and not what its abbreviating. Also I didn't know about it xD |
Beta Was this translation helpful? Give feedback.
-
+1 for this answer. Currently, it takes a lot of effort to search for an abbreviation and often requires reading the source code of a plugin |
Beta Was this translation helpful? Give feedback.
-
A quick hotkey for looking at your abbrs and functions.
this here works for me pretty well, would this be hard to add or out of scope for the project?
I currently have the command below abbreviated to
gabb
for get abbr.bat .config/fish/conf.d/abbreviations.fish | rg abbr | fzf
Beta Was this translation helpful? Give feedback.
All reactions