You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find myself presenting the same menus repeatedly via REPL.TerminalMenus, and it would make sense for the default option to be whatever the user last chose.
It looks like it would be super easy to hack AbstractMenu.jl such that the cursor can optionally be initialized with something other than 1.
I should be able to hack together a PR for this over the weekend. API-wise, I'm thinking to add something like an initial_cursor::Int=1 keyword arg to the request() method that actually implements all the logic, and just forward the argument along between all the other methods. Thoughts?
The text was updated successfully, but these errors were encountered:
I find myself presenting the same menus repeatedly via REPL.TerminalMenus, and it would make sense for the default option to be whatever the user last chose.
It looks like it would be super easy to hack
AbstractMenu.jl
such that the cursor can optionally be initialized with something other than 1.I should be able to hack together a PR for this over the weekend. API-wise, I'm thinking to add something like an
initial_cursor::Int=1
keyword arg to therequest()
method that actually implements all the logic, and just forward the argument along between all the other methods. Thoughts?The text was updated successfully, but these errors were encountered: