diff options
| author | Naz <ndpm13@ch-naseem.com> | 2025-08-07 16:57:49 +0100 |
|---|---|---|
| committer | Naz <ndpm13@ch-naseem.com> | 2025-08-07 16:57:49 +0100 |
| commit | 9fd13a4ee0a189f6cf81658370df339a1d4e1868 (patch) | |
| tree | b933e642af508e7eb9f8ffadf52d06e7ea91ba85 | |
| parent | 7cb678a943c47d8df031dc10692916b81becce20 (diff) | |
✨feat: improve fuzzy select UX with length limit and vim mode
| -rw-r--r-- | src/github.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/github.rs b/src/github.rs index 50812d1..a37e7b1 100644 --- a/src/github.rs +++ b/src/github.rs @@ -35,6 +35,8 @@ pub async fn get_github_release_url(appimage: &AppImage) -> Result<String> { let tag_selection = FuzzySelect::new() .with_prompt("Choose a release") .items(&tags) + .max_length(7) + .vim_mode(true) .interact()?; let mut assets: Vec<Asset> = vec![]; @@ -60,6 +62,8 @@ pub async fn get_github_release_url(appimage: &AppImage) -> Result<String> { .map(|x| x.name.to_string()) .collect::<Vec<_>>(), ) + .max_length(7) + .vim_mode(true) .interact()?; } |
