REPL: Replace swipe gestures with keyboard shortcuts for IR panes #180
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
rust
technical-debt
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-seq#180
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The swipe gesture activation for IR panes in seqr is too fussy/unreliable. Replace with keyboard shortcuts.
Current Behavior
Proposed Solution
Use Alt+number scheme (or similar) for direct access:
Option A: Alt+Number
Alt+1- Toggle Stack Effects viewAlt+2- Toggle Typed AST viewAlt+3- Toggle LLVM IR viewAlt+0- Hide IR paneOption B: Function Keys
F1- Stack EffectsF2- Typed ASTF3- LLVM IREsc- HideOption C: Ctrl+I prefix
Ctrl+I, s- Stack EffectsCtrl+I, a- ASTCtrl+I, l- LLVM IRCtrl+I, Ctrl+I- Toggle visibilityConsiderations
Ctrl+Nfor cycling (already works):helpoutput with new shortcutsFiles to Modify
crates/repl/src/app.rs- key handling, remove swipe logiccrates/repl/src/keys.rs- if needed for key mappingImplemented function key toggles:
Behavior:
Changes:
toggle_ir_view()method inapp.rshandle_key()swipe_right(),swipe_left()methodsswipe_accumulatorfieldmain.rs:helpto show F1/F2/F3 shortcutsReady for review.
https://github.com/navicore/patch-seq/pull/182