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

Change binding on Hide REPL to M-, #1375

Merged
merged 4 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Swarm/TUI/Controller.hs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ handleMainEvent ev = do
-- Paint with the World Editor
EC.handleCtrlLeftClick mouseLoc
-- toggle collapse/expand REPL
ControlChar 's' -> do
ControlChar ',' -> do
noahyor marked this conversation as resolved.
Show resolved Hide resolved
invalidateCacheEntry WorldCache
uiState . uiShowREPL %= not
MouseDown n _ _ mouseLoc ->
Expand Down
2 changes: 1 addition & 1 deletion src/Swarm/TUI/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ drawKeyMenu s =
, may isPaused (NoHighlight, "^o", "step")
, may (isPaused && hasDebug) (if s ^. uiState . uiShowDebug then Alert else NoHighlight, "M-d", "debug")
, Just (NoHighlight, "^zx", "speed")
, Just (NoHighlight, "^s", if s ^. uiState . uiShowREPL then "hide REPL" else "show REPL")
, Just (NoHighlight, "^,", if s ^. uiState . uiShowREPL then "hide REPL" else "show REPL")
noahyor marked this conversation as resolved.
Show resolved Hide resolved
, Just (if s ^. uiState . uiShowRobots then NoHighlight else Alert, "M-h", "hide robots")
]
may b = if b then Just else const Nothing
Expand Down