[PR #141] [CLOSED] Add Ctrl+g and G vim style keybindings to move cursor to first and last line #629

Closed
opened 2026-02-28 14:50:16 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Rigellute/spotify-tui/pull/141
Author: @ghost
Created: 11/6/2019
Status: Closed

Base: masterHead: vim-style-keybindings


📝 Commits (2)

  • 72c8a62 Add ctrl+g and G vim style keybinding to move first and last line in the list
  • 7743a6d solve a conflict: use crate instead of super::super

📊 Changes

9 files changed (+184 additions, -1 deletions)

View changed files

📝 src/handlers/album_list.rs (+6 -0)
📝 src/handlers/album_tracks.rs (+6 -0)
📝 src/handlers/artist_albums.rs (+6 -0)
📝 src/handlers/artists.rs (+6 -0)
📝 src/handlers/common_key_events.rs (+136 -1)
📝 src/handlers/playlist.rs (+6 -0)
📝 src/handlers/recently_played.rs (+6 -0)
📝 src/handlers/search_results.rs (+6 -0)
📝 src/handlers/track_table.rs (+6 -0)

📄 Description

I add new keybindings for cursor motion.

ctrl+g and G are Vim-like keybinding that move cursor to first and last line of the list. Real vim keybinding to move cursor to first line is gg but it seems that keybindings that use two or more key are not supported in this app so I assign the fiunction to ctrl+g.

I think that i implemented them in all blocks (Artists, Albums, Playlists and so on) but if you notice my over looking, please tell me it.


🔄 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/Rigellute/spotify-tui/pull/141 **Author:** [@ghost](https://github.com/ghost) **Created:** 11/6/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `vim-style-keybindings` --- ### 📝 Commits (2) - [`72c8a62`](https://github.com/Rigellute/spotify-tui/commit/72c8a621aabe4fe18af16a87f26335cbdb93c23a) Add ctrl+g and G vim style keybinding to move first and last line in the list - [`7743a6d`](https://github.com/Rigellute/spotify-tui/commit/7743a6d94fe0e0d2850821453b9fa54167a205a7) solve a conflict: use crate instead of super::super ### 📊 Changes **9 files changed** (+184 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/handlers/album_list.rs` (+6 -0) 📝 `src/handlers/album_tracks.rs` (+6 -0) 📝 `src/handlers/artist_albums.rs` (+6 -0) 📝 `src/handlers/artists.rs` (+6 -0) 📝 `src/handlers/common_key_events.rs` (+136 -1) 📝 `src/handlers/playlist.rs` (+6 -0) 📝 `src/handlers/recently_played.rs` (+6 -0) 📝 `src/handlers/search_results.rs` (+6 -0) 📝 `src/handlers/track_table.rs` (+6 -0) </details> ### 📄 Description I add new keybindings for cursor motion. ctrl+g and G are Vim-like keybinding that move cursor to first and last line of the list. Real vim keybinding to move cursor to first line is gg but it seems that keybindings that use two or more key are not supported in this app so I assign the fiunction to ctrl+g. I think that i implemented them in all blocks (Artists, Albums, Playlists and so on) but if you notice my over looking, please tell me it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:50:16 +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-tui#629
No description provided.