Compare commits
3 Commits
d8911aab9c
...
7c6dbf27f2
Author | SHA1 | Date | |
---|---|---|---|
|
7c6dbf27f2 | ||
fc66692f37 | |||
bc4ebed1f7 |
@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- *(deps)* update rust crate bytes to v1.7.2
|
- *(deps)* update rust crate bytes to v1.7.2
|
||||||
|
|
||||||
### Other
|
### Other
|
||||||
|
- clear screen after build
|
||||||
|
- fix warnings
|
||||||
- update theme for vhs
|
- update theme for vhs
|
||||||
- *(deps)* update rust crate clap to v4.5.18
|
- *(deps)* update rust crate clap to v4.5.18
|
||||||
- *(deps)* update rust crate pretty_assertions to v1.4.1
|
- *(deps)* update rust crate pretty_assertions to v1.4.1
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 783 KiB After Width: | Height: | Size: 597 KiB |
@ -38,7 +38,7 @@ mod app {
|
|||||||
crossterm::event::{self, Event, KeyCode},
|
crossterm::event::{self, Event, KeyCode},
|
||||||
layout::{Constraint, Layout},
|
layout::{Constraint, Layout},
|
||||||
style::{Style, Stylize},
|
style::{Style, Stylize},
|
||||||
text::{Line, Span, Text},
|
text::{Line, Span},
|
||||||
widgets::{ListItem, ListState, Paragraph, StatefulWidget},
|
widgets::{ListItem, ListState, Paragraph, StatefulWidget},
|
||||||
DefaultTerminal, Frame,
|
DefaultTerminal, Frame,
|
||||||
};
|
};
|
||||||
@ -67,7 +67,7 @@ mod app {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn update_matched_repos(&mut self) {
|
fn update_matched_repos(&mut self) {
|
||||||
let mut res = self
|
let res = self
|
||||||
.app
|
.app
|
||||||
.fuzzy_matcher()
|
.fuzzy_matcher()
|
||||||
.match_repositories(&self.current_search, self.repositories);
|
.match_repositories(&self.current_search, self.repositories);
|
||||||
@ -102,8 +102,7 @@ mod app {
|
|||||||
KeyCode::Esc => return Ok(None),
|
KeyCode::Esc => return Ok(None),
|
||||||
KeyCode::Enter => {
|
KeyCode::Enter => {
|
||||||
if let Some(selected) = self.list.selected() {
|
if let Some(selected) = self.list.selected() {
|
||||||
if let Some(repo) = self.matched_repos.iter().nth(selected).cloned()
|
if let Some(repo) = self.matched_repos.get(selected).cloned() {
|
||||||
{
|
|
||||||
return Ok(Some(repo));
|
return Ok(Some(repo));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ Set Theme "Dracula"
|
|||||||
Set Width 1200
|
Set Width 1200
|
||||||
Set Height 1000
|
Set Height 1000
|
||||||
Hide
|
Hide
|
||||||
Type "cargo run --features example -- --no-cache"
|
Type "cargo run --features example -- --no-cache && clear"
|
||||||
Enter
|
Enter
|
||||||
Sleep 1s
|
Sleep 1s
|
||||||
Show
|
Show
|
||||||
|
Loading…
Reference in New Issue
Block a user