Skip to content

Commit

Permalink
add support for moving forward tabs (#860)
Browse files Browse the repository at this point in the history
This adds support for moving forward tabs in the grid using `CSI n I`.
This sequence behaves like using tabs `\t` but also accepts a count
argument to move multiple tabs forward.

Co-authored-by: Raphael Amorim <[email protected]>
  • Loading branch information
aymanbagabas and raphamorim authored Dec 25, 2024
1 parent 5bc94a3 commit f048daa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/docs/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ language: 'en'
- Kitty keyboard protocol is now enabled by default.
- Allow `Renderer` to be configured cross-platform by `Platform` property.
- Add `ToggleFullscreen` to configurable actions.
- Support for `CSI n I` (Cursor Forward Tabulation) to move the cursor forward by a specified number of tabs.
- Always emit `1` for the first parameter when having modifiers in kitty keyboard protocol.
- Microsoft Windows: fix the event loop not waking on accessibility requests.

Expand Down
5 changes: 4 additions & 1 deletion rio-backend/src/crosswords/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2348,6 +2348,7 @@ impl<U: EventListener> Handler for Crosswords<U> {
let cell = self.grid.cursor_square();
if cell.c == ' ' {
cell.c = c;
self.damage_cursor();
}

loop {
Expand Down Expand Up @@ -2377,7 +2378,9 @@ impl<U: EventListener> Handler for Crosswords<U> {

#[inline]
fn move_forward_tabs(&mut self, count: u16) {
trace!("[unimplemented] Moving forward {} tabs", count);
trace!("Moving forward {} tabs", count);

self.put_tab(count);
}

#[inline]
Expand Down

0 comments on commit f048daa

Please sign in to comment.