Conversation
70884ab to
3290851
Compare
|
I've updated my PR so you may want to rebase again, or just wait until it's landed. Mitchell gave some advice that I decided to take with regards to 133;A vs 133;P, which is basically to always use 133;P. |
3290851 to
bd22df0
Compare
|
@fdncred I updated my branch too – using Nushell with all the goodies now! |
|
@stuartcarnie is there a difference in the |
|
I landed #1019. when you have time it would be great to rebase |
Ghostty supports |
|
@mitchellh / @fdncred yup, I implemented support for click_events and have been using it in Nushell + Ghostty for the past week – works great! |
|
yay! I'll land this PR once it's green again and i have another quick trip through the code. Thanks @stuartcarnie!! |
bd22df0 to
b168c40
Compare
|
@fdncred done! |
fdncred
left a comment
There was a problem hiding this comment.
Just some minor tweaks. Let me know if you think this is wrong. See this for reference.
reedline/src/terminal_extensions/semantic_prompt.rs
Lines 13 to 17 in 57f8c6a
fdncred
left a comment
There was a problem hiding this comment.
Wow, this is a cool PR! Other than the comments I already made I'd just like to say thanks for doing such a good job. Looking forward to landing this.
I wish I could find a terminal on Windows that worked. I've tried Windows Terminal, Alacritty, WezTerm and don't see this working. I assume those terminals just don't support click_events.
According to Mitchell, only Kitty and now Ghostty support click_events I'll make the other changes shortly |
|
Just so you know my plan, this is it.
I'd like to land these in order as soon as we can. No rush, just sharing. |
|
@fdncred I'm going to push the changes shortly – also added a couple of minor optimisations |
|
@fdncred it's ready – I'd like to refactor layout logic into a separate structure in a future PR, so that painting and snapshotting use the same logic |
Sure. Ping me when you have something and I'll look it over! |
<!-- Thank you for improving Nushell! Please, read our contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md --> ## Summary - Enable OSC 133 semantic prompt markers (via @fdncred / nushell/reedline/pull/1019) - Enable OSC 133 click_events (via nushell/reedline/pull/1020). - Keep OSC 633 support for VS Code and prefer it when available. ## Testing - `cargo test -p nu-cli prompt_does_not_embed_osc_markers` - `cargo test -p nu-cli semantic_markers_` - `cargo test -p nu-protocol click_to_cursor_is_unknown_option` ## Release notes summary - What our users need to know - Enabling `shell_integration.osc133` now also enables click-to-cursor in supported terminals. ## Tasks after submitting - [ ] Update the [documentation](https://github.com/nushell/nushell.github.io) <details> <summary<strong>DEMO</strong></summary> https://github.com/user-attachments/assets/ce11079f-0c4f-4f90-a1b1-e3c3d0b99351 </details>
<!-- Thank you for improving Nushell! Please, read our contributing guide: https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md --> ## Summary - Enable OSC 133 semantic prompt markers (via @fdncred / nushell/reedline/pull/1019) - Enable OSC 133 click_events (via nushell/reedline/pull/1020). - Keep OSC 633 support for VS Code and prefer it when available. ## Testing - `cargo test -p nu-cli prompt_does_not_embed_osc_markers` - `cargo test -p nu-cli semantic_markers_` - `cargo test -p nu-protocol click_to_cursor_is_unknown_option` ## Release notes summary - What our users need to know - Enabling `shell_integration.osc133` now also enables click-to-cursor in supported terminals. ## Tasks after submitting - [ ] Update the [documentation](https://github.com/nushell/nushell.github.io) <details> <summary<strong>DEMO</strong></summary> https://github.com/user-attachments/assets/ce11079f-0c4f-4f90-a1b1-e3c3d0b99351 </details>
This PR builds on #1019 to add support for OSC 133 click_events=1. It is in draft for @fdncred to evaluate