Skip to content

Commit

Permalink
Merge pull request #1 from karimould/fix-allow-whitespace-in-search
Browse files Browse the repository at this point in the history
added whitespaces to if so they get pushed to the filter
  • Loading branch information
karimould authored Sep 27, 2023
2 parents 97bc1be + 9a6b85b commit 0fc23b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file removed .Cargo.toml.swp
Binary file not shown.
Binary file modified assets/zellij_forgot.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ impl ZellijPlugin for State {

should_render = true;
}
Event::Key(Key::Char(c)) if c.is_ascii_alphabetic() || c.is_ascii_digit() => {
Event::Key(Key::Char(c))
if c.is_ascii_alphabetic() || c.is_ascii_digit() || c.is_whitespace() =>
{
self.filter.push(c);

should_render = true;
Expand Down

0 comments on commit 0fc23b2

Please sign in to comment.