Compare commits

..

7 Commits

Author SHA1 Message Date
itsjunetime 848c7f546d Update to latest version of mimalloc fork 2026-08-15 17:12:35 -05:00
itsjunetime 7a2be5a81a try to fix windows dll linking with mimalloc 2026-08-15 17:06:34 -05:00
itsjunetime 057b86ad4b maybe we need to enable debug in mimalloc for windows? 2026-08-15 17:06:34 -05:00
itsjunetime 63503ac8c9 Update deps again 2026-08-15 17:06:31 -05:00
itsjunetime 5ef08ff525 fmt 2026-08-15 17:06:31 -05:00
itsjunetime d386b51aaa Use upstream versions of ratatui crates 2026-08-15 17:06:31 -05:00
June c2117daaf5 fix 'g' keybinding after if-let-arms refactor (#159)
* fix 'g' keybinding after if-let-arms refactor

* box error
2026-06-28 10:21:15 -05:00
5 changed files with 379 additions and 309 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ jobs:
- name: Clippy
run: cargo clippy --locked -- -D warnings
- name: Tests
run: cargo test --verbose --locked
run: cargo test --locked
- name: Check fmt
run: cargo fmt -- --check
- name: Run benchmarks as tests
Generated
+369 -282
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -31,7 +31,7 @@ tokio = { version = "1.37.0", features = ["rt-multi-thread", "macros"] }
futures-util = { version = "0.3.30", default-features = false }
flume = { version = "0.12.0", default-features = false, features = ["async"] }
xflags = "0.4.0-pre.2"
mimalloc = { version = "0.1", features = [ "debug_in_debug" ] }
mimalloc = { git = "https://github.com/itsjunetime/mimalloc_rust.git", rev = "1094dbf3afdc0a57215e925a05f2e3160e59575b", features = [ "debug_in_debug" ] }
nix = { version = "0.31.0", features = ["signal"] }
mupdf = { git = "https://github.com/messense/mupdf-rs.git", rev = "d7441b9998c92135e329559c0aa71d9dc92cf4de", default-features = false, features = ["svg", "system-fonts", "img"] }
rayon = { version = "1", default-features = false }
-17
View File
@@ -1,17 +0,0 @@
// Working around https://github.com/purpleprotocol/mimalloc_rust/pull/167 while all the cc, rust,
// msvc, etc stuff is still being worked on. Kinda unfortunate that we need a build.rs for all
// targets, but at least it should be quick.
fn main() {
if std::env::var("TARGET").is_ok_and(|s| s.contains("windows-msvc"))
&& std::env::var("PROFILE").is_ok_and(|p| p == "debug")
{
println!("cargo::rustc-env=CFLAGS=/MDd");
println!("cargo::rustc-env=CXXFLAGS=/MDd");
// Don't link the default CRT
// println!("cargo::rustc-link-arg=/nodefaultlib:msvcrt");
// Link the debug CRT instead
// println!("cargo::rustc-link-arg=/defaultlib:msvcrtd");
}
}
+8 -8
View File
@@ -739,19 +739,19 @@ impl Tui {
InputAction::Redraw.into()
}
KeyCode::Char(c)
if let BottomMessage::Input(InputCommand::GoToPage(ref mut page)) =
self.bottom_msg && matches!(c, 'g' if self.is_kitty) =>
c.to_digit(10).map(|input_num| {
*page = (*page * 10) + input_num as usize;
InputAction::Redraw
}),
KeyCode::Char(_)
if let BottomMessage::Input(InputCommand::GoToPage(_)) =
self.bottom_msg =>
self.bottom_msg && matches!(c, 'g' if self.is_kitty) =>
{
self.set_msg(MessageSetting::Pop);
self.update_zoom(Zoom::pan_bottom)
}
KeyCode::Char(c)
if let BottomMessage::Input(InputCommand::GoToPage(ref mut page)) =
self.bottom_msg =>
c.to_digit(10).map(|input_num| {
*page = (*page * 10) + input_num as usize;
InputAction::Redraw
}),
KeyCode::Char(c) => match c {
'l' => self.change_page(PageChange::Next, ChangeAmount::Single),
'j' => self.change_page(PageChange::Next, ChangeAmount::WholeScreen),