Closed TheReptar closed 1 year ago
Very cool @TheReptar !
I see you add help for bindings, what about adding help text to the bottom of llama's tui? Bubbletea provides such functionality already via help.Model
.
Force pushed to rebase on #53
Very cool @TheReptar !
I see you add help for bindings, what about adding help text to the bottom of llama's tui? Bubbletea provides such functionality already via
help.Model
.
I added the help property to the bindings config because I wanted the config to match the existing charmbracelet/bubbles key.Binding struct as much as possible.
As you point out though, we're not currently using the help for anything but some help text at the bottom of the tui would be cool! As far as the configuration is concerned it should basically be plug and play; users will have fine-grained control over what shows up after it's been implemented as long as we leverage the charmbracelet/bubbles key.Help struct.
I may be able to tackle that in a separate PR if that's something y'all would be interested in.
It is a cool concept, I already started tackling it and will open a PR soon, would love to rebase on top of your PR to make it configurable.
@antonmedv What are your thoughts on merging this PR? Is there anything missing?
Will try to review PR soon. Got lot of work on other projects)
Force pushed to rebase on #67
@antonmedv I cleaned up the branch to accommodate recent activity on master, so should be safe to review/merge whenever you're ready 👍
Closing because this project appears to be unmaintained or there isn't sufficient interest in configurability to merge this PR.
Resolves (partially) #45 Resolves (partially) #51 Resolves #73
Context:
45
51
73
Changes (Functional):
keyXYZ
action using a json configuration file.~/.config/llama/config.json
, but this may be overridden using theLLAMA_CONFIG
environment variable.Code Changes:
main
package:configuration.go
LLAMA_CONFIG
environment variable or default configuration path and reads the configuration file.key.Binding
struct references, and overrides the binding's properties with any values found in the configuration file.Additional Notes & Tech Debt:
main.go
, those actions should be added to the map inconfiguration.go
to ensure user's can configure their key bindings.