Closed lyricnz closed 2 years ago
Perhaps it's a design feature, but many of the default shortcut configurations are not "real" and are ignored from the file. They are bound explicitly in code like keybindings.go
ctrl+s=save NOT FOUND"
ctrl+space=toggle_portfolio_balances NOT FOUND"
scrollup=move_up_or_previous_page NOT FOUND"
>=scroll_right NOT FOUND"
scrolldown=move_down_or_next_page NOT FOUND"
|=toggle_chart_fullscreen NOT FOUND"
ctrl+S=save NOT FOUND"
<=scroll_left NOT FOUND"
E=show_portfolio_edit_menu NOT FOUND"
e=show_portfolio_edit_menu NOT FOUND"
A=toggle_price_alerts NOT FOUND"
\\\\=toggle_table_fullscreen NOT FOUND"
tab=move_down_or_next_page NOT FOUND"
+=show_price_alert_add_menu NOT FOUND"
b=sort_column_balance NOT FOUND"
%=sort_column_percent_holdings NOT FOUND"
To solve the first issue, cointop should not add default key bindings for actions that are already defined (ie: if you define "#" = "last_page"; cointop should not add "$" = "last_page")
The second issue is caused by "toggle_portfolio_balances" being missing from the list of actions. Seems this is a bit out of sync with the action-binding function.
I suppose we also need to support >1 key that binds to the same action (eg e + E ==> show_portfolio_edit_menu)
The PR above:
It's not perfect (around multiple keybindings for the same action), but I think it's better.
Thanks for the detailed explanation @lyricnz it's definite a bug. The PR looks great. Also I'd be good with removing the multiple default key options for a single action (e.g. e or E => show_portfolio_edit_menu
to be only e => show_portfolio_edit_menu
) to keep things simple but no strong opinion here
Sometimes it re-adds bindings that were moved:
Sometimes it reverts a config change