-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Mark Mode should preempt key bindings, and work with anything that causes scrolling... #13533
Comments
There's a lot to unpack here, I'll make sure this is at the top of the discussion order |
quick discussion notes:
over to @carlos-zamora |
Ok, I added this to the main epic #4993. I also have a few notes on a few of these:
I was wrong. No issue tracking this. So congrats, this issue is now tracking that haha.
This one has an issue: #4985. I closed it because selecting by viewport automatically scrolls, which mostly satisfies the need. That said since this is the second time it's been asked for (especially after mark mode is available), I'll reopen it. |
Fixed by #13659
Fixed by #13405. |
Uhm... seems counterintuitive to me... "mark mode" allows to select some text, make a selection. Also, most (all) tools/editors I am aware of call this "selection", why do we want to call it "mark"? |
## Summary of the Pull Request This PR moves the key handling for mark mode into a helper method that is then called before an action/key binding is attempted. ## References Epic: #4993 Closes #13533 ## Validation Steps Performed - Add custom keybinding to "down" arrow key - in mark mode --> selection updates appropriately - out of mark mode --> keybinding executed
This PR moves the key handling for mark mode into a helper method that is then called before an action/key binding is attempted. Epic: #4993 Closes #13533 - Add custom keybinding to "down" arrow key - in mark mode --> selection updates appropriately - out of mark mode --> keybinding executed Amended by DHowett to remove URL targeting features. (cherry picked from commit 70313db) Service-Card-Id: 84711521 Service-Version: 1.15
🎉This issue was addressed in #13659, which has now been successfully released as Handy links: |
🎉This issue was addressed in #13659, which has now been successfully released as Handy links: |
Windows Terminal version
1.15.1862.0
Windows build number
10.0.19042.0
Other Software
No response
Steps to reproduce
I know the mark mode keyboard selection is still very early days. I just wanted to make sure the expected behaviors are all covered, and I didn't see this called out.
Any hotkey that pre-exists the mark mode currently interfere with selection. That is, currently:
If the user has an "Action" configured for
Ctrl+Shift+Home
orCtrl+Shift+PgUp
or whatever, that action will trigger instead of the selection.Additionally, nothing else that scrolls the buffer causes the mark to move or select:
On top of that, we can't usefully turn on mark mode after scrolling, because it always appears at the bottom.
Expected Behavior
Mark mode should probably be called "selection" mode, to disambiguate with the new "marks" ...
Mark mode should disregard actions that consume Arrows/PgUp/PgDn/Home/End -- or possibly, should ignore all actions except selection-specific actions or Esc to cancel, changing all the hotkeys like a
vi
mode does.The "mark" should follow the scroll buffer if the buffer is scrolled via other actions. Ideally, it should select when that happens with SHIFT pressed.
The mark should always appear within the visible buffer when it's invoked, not only at the bottom/prompt.
Actual Behavior
The mark only ever appears at the prompt, and can only be used if you haven't configured actions over the default text selection keys.
The text was updated successfully, but these errors were encountered: