Allow remembering some of the variable values
Closed this issue · 2 comments
The use case
When there is a variable that the user has to type in its value, or a variable that has many values to choose from, remember the last used value, or even all the historic values.
How I see it implemented
The simplest, I think, solution would be to modify the behavior of the variables that do not have any associated $ command. For such variables store the value in the navi configuration folder and extract it the next time the same command is used.
🔷 I am willing to implement this feature myself, if there is general agreement on this feature.
Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)
Reading the code I found out that a variable value can be set using an environment variable. Not sure if it is mentioned in the docs. Anyway, this is good enough for me.