Skip to content
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: allow terminal cmd to be a function #185

Merged
merged 1 commit into from
Feb 22, 2023
Merged

Conversation

bennypowers
Copy link
Contributor

Similarly to how val can be a function, this lets users define a function that returns the terminal command.

Why? Users might want to do expensive FS tasks in order to, say, get a random script and determine its dimensions.

Rather than running these expensive tasks in each start up in the config function, it's better to defer these until alpha actually draws the output

@goolord goolord merged commit c46c0c8 into goolord:main Feb 22, 2023
@bennypowers bennypowers deleted the patch-3 branch February 22, 2023 21:37
bennypowers added a commit to bennypowers/alpha-nvim that referenced this pull request Feb 23, 2023
following on from goolord#185 , this allows users to calculate terminal window options like height and width dynamically
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants