[PR #742] [MERGED] Add support for vim like motions, i.e. 5j 8k, etc. #862

Closed
opened 2026-03-03 00:01:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/742
Author: @markgandolfo
Created: 6/4/2025
Status: Merged
Merged: 6/22/2025
Merged by: @aome510

Base: masterHead: master


📝 Commits (2)

  • bc3423f Add support for vim like motions, i.e. 5j 8k, etc.
  • bfc8292 Merge branch 'master' into master

📊 Changes

6 files changed (+123 additions, -87 deletions)

View changed files

📝 README.md (+59 -59)
📝 spotify_player/src/command.rs (+4 -4)
📝 spotify_player/src/event/mod.rs (+22 -2)
📝 spotify_player/src/event/page.rs (+17 -14)
📝 spotify_player/src/event/window.rs (+16 -8)
📝 spotify_player/src/state/ui/mod.rs (+5 -0)

📄 Description

Added support for vim-motions when navigating..

managed to get it working with one function that will listen for keys c.to_digit(10), until a non digit is pressed where it'll call the handler with the count.

I'm not really a rust developer, so any feedback is welcome..


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/aome510/spotify-player/pull/742 **Author:** [@markgandolfo](https://github.com/markgandolfo) **Created:** 6/4/2025 **Status:** ✅ Merged **Merged:** 6/22/2025 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`bc3423f`](https://github.com/aome510/spotify-player/commit/bc3423f3f49020a3350a021dc928e27a5a036a8b) Add support for vim like motions, i.e. 5j 8k, etc. - [`bfc8292`](https://github.com/aome510/spotify-player/commit/bfc8292d1237afc1a0ef7abfb0ee902c78c7a537) Merge branch 'master' into master ### 📊 Changes **6 files changed** (+123 additions, -87 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+59 -59) 📝 `spotify_player/src/command.rs` (+4 -4) 📝 `spotify_player/src/event/mod.rs` (+22 -2) 📝 `spotify_player/src/event/page.rs` (+17 -14) 📝 `spotify_player/src/event/window.rs` (+16 -8) 📝 `spotify_player/src/state/ui/mod.rs` (+5 -0) </details> ### 📄 Description Added support for vim-motions when navigating.. managed to get it working with one function that will listen for keys `c.to_digit(10)`, until a non digit is pressed where it'll call the handler with the count. I'm not really a rust developer, so any feedback is welcome.. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 00:01:10 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#862
No description provided.