refactor: abbrevation expansion trait logic#1094
Conversation
make abbreviation expansion logic more generic so that the client can define expansion veto logic for different abbreviation contexts
No. My only question is if this fixes the nushell issue on it's own or if there is code needed on the nushell side to fix it there. |
|
It needs code on the nushell side to fix, I have a PR ready for that I just haven't submitted it yet. |
|
ok, thanks. reedline commits are building up so hopefully patching nushell to the latest reedline commit doesn't break anything else. |
I think this one is the only one that could really break anything. Everything else is just exposing things in nushell`s config or is non-breaking. |
|
@kronberger-droid Great! @casedami Ping me when you have your nushell PR up. Thanks for all the help! |
as discussed in nushell/nushell#18315
renames
is_inside_string_literaltoshould_expand_abbrand adds anAbbrExpandContextparameter so that the client can define AST expansion logic according to the expansion context (ie 'bang expansion' or 'fish-style expansion')i would say that the existing abbreviation tests are sufficient on the reedline side of things, especially since the main behavior change will come from nushell