[PR #329] [MERGED] Add custom text input widget with cursor, to use in search page #1656

Closed
opened 2026-03-14 15:25:42 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/329
Author: @micleo2
Created: 1/5/2024
Status: Merged
Merged: 1/16/2024
Merged by: @aome510

Base: masterHead: cursor-search-input


📝 Commits (4)

  • 52125be Add custom text input widget with cursor, to use in search page
  • 0467a03 Remove unused LineInput style fields
  • 0d95ad1 cleanup, simplify the implementation
  • 9657617 don't return error when initializing user data

📊 Changes

9 files changed (+151 additions, -46 deletions)

View changed files

📝 spotify_player/src/event/mod.rs (+2 -1)
📝 spotify_player/src/event/page.rs (+13 -24)
📝 spotify_player/src/main.rs (+1 -1)
📝 spotify_player/src/state/data.rs (+7 -7)
📝 spotify_player/src/state/mod.rs (+4 -4)
📝 spotify_player/src/state/ui/page.rs (+2 -2)
📝 spotify_player/src/ui/mod.rs (+1 -0)
📝 spotify_player/src/ui/page.rs (+4 -7)
spotify_player/src/ui/single_line_input.rs (+117 -0)

📄 Description

I found using the search bar to be a confusing experience without a cursor. This adds a very simple implementation. You can type, delete with backspace, and navigate with left/right arrows. This can be easily extended in the future to support some basic Emacs-style navigation: by word, end of line etc.

Short video containing usage:
https://github.com/aome510/spotify-player/assets/12721457/5a342c28-d447-4696-ac48-e3d4f0b283bc


🔄 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/329 **Author:** [@micleo2](https://github.com/micleo2) **Created:** 1/5/2024 **Status:** ✅ Merged **Merged:** 1/16/2024 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `cursor-search-input` --- ### 📝 Commits (4) - [`52125be`](https://github.com/aome510/spotify-player/commit/52125be344bd12aa6f14ca310471a66ca84c48e6) Add custom text input widget with cursor, to use in search page - [`0467a03`](https://github.com/aome510/spotify-player/commit/0467a03dff274ae607ddfd6d6a85b487f720d5b7) Remove unused LineInput style fields - [`0d95ad1`](https://github.com/aome510/spotify-player/commit/0d95ad14321a1e02abc58a78972fab0b5718f30d) cleanup, simplify the implementation - [`9657617`](https://github.com/aome510/spotify-player/commit/96576177f611ee39df6c0dc674b4b5b917f63617) don't return error when initializing user data ### 📊 Changes **9 files changed** (+151 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `spotify_player/src/event/mod.rs` (+2 -1) 📝 `spotify_player/src/event/page.rs` (+13 -24) 📝 `spotify_player/src/main.rs` (+1 -1) 📝 `spotify_player/src/state/data.rs` (+7 -7) 📝 `spotify_player/src/state/mod.rs` (+4 -4) 📝 `spotify_player/src/state/ui/page.rs` (+2 -2) 📝 `spotify_player/src/ui/mod.rs` (+1 -0) 📝 `spotify_player/src/ui/page.rs` (+4 -7) ➕ `spotify_player/src/ui/single_line_input.rs` (+117 -0) </details> ### 📄 Description I found using the search bar to be a confusing experience without a cursor. This adds a very simple implementation. You can type, delete with backspace, and navigate with left/right arrows. This can be easily extended in the future to support some basic Emacs-style navigation: by word, end of line etc. Short video containing usage: https://github.com/aome510/spotify-player/assets/12721457/5a342c28-d447-4696-ac48-e3d4f0b283bc --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 15:25:42 +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#1656
No description provided.