-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
feat(config): allow shell
parameter to be a function
#423
Conversation
This enables determining the default shell dynamically.
@jakubkaczor thanks for the PR. Personally I don't mind at all. If you could make this query stylistically the same as other similar options that'd be great, I'm not sure the other similar options call the function inline like that. Maybe they do, on mobile so haven't checked |
@akinsho, what do you mean by “stylistically the same”? In terms of documentation? Also, what does it mean for an option to call a function? The only function field in the configuration I located is |
Excuse me. The |
@jakubkaczor never mind about my comment I didn't mean to cause confusion. I thought maybe this plugin declared functions in a different way I'll have a look at this again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@jakubkaczor can you add documentation about this feature in the help docs and README. Would also be nice to have a small test case that essentially launches a terminal with a function |
Yes. You asked if I could add documentation to the help docs. Isn't it auto-generated by panvimdoc? Therefore, I left that out. If I shouldn't have, please clarify. 😉 And please, let me know if the test is in the form you expected. |
shell
parameter to be a functionshell
parameter to be a function
@jakubkaczor changes look good thanks for making them, and the test case is fine, just wanted something in place to safeguard this feature against future changes in case myself or someone else accidentally forgets that command can be a function and it gets removed at some point |
I understand. Thanks for explanation. 😉 |
This enables determining the default shell dynamically. Please let me know if you are ok with such a change. If so, I will update the documentation.