Commit Graph

117 Commits

Author SHA1 Message Date
June 09a332f07e Update deps (#113) 2025-11-23 14:01:47 -06:00
June cde86b4f2c implement gg & G keybinds and better help page (#112)
* implement gg & G keybinds and better help page

* Update changelog
2025-11-16 17:54:18 -06:00
June 5a492599da Fix weird cropping when zooming out too much with kitty (#111)
* Fix weird cropping when zooming out too much with kitty

* Add changelog entry
2025-11-06 20:02:31 -06:00
June 7551c4dba3 Update deps and fmt (#110) 2025-11-06 18:50:19 -06:00
itsjunetime e61eb9b846 Fix r_to_l argument as well to just be a flag 2025-11-06 18:21:18 -06:00
tatounee 6b37976357 Made flags -f, --fullscreen not taking argument (#109)
Now, its presence alone is enough to activate the full-screen option.
2025-11-06 18:18:57 -06:00
June 3628d21c74 Switch to stable base64 simd library (#105) 2025-09-29 17:00:29 -05:00
itsjunetime f4f3b4f539 Actually update package Cargo.toml ugh 2025-09-15 10:05:20 -05:00
itsjunetime a79c534e97 Actually mark release on CHANGELOG 2025-09-07 20:33:43 -05:00
June 971393892a v0.4.3 release v0.4.3 2025-09-07 20:32:16 -05:00
June 440515a3db Actually query terminals and fix terminals if we fail initialization (#103) 2025-09-06 12:02:04 -05:00
itsjunetime 690489016c fmt 2025-09-05 11:15:58 -05:00
itsjunetime bd5554db27 Update mupdf to use git dependency so it works on windows 2025-09-05 10:34:46 -05:00
itsjunetime 45409bacd0 fix CI? 2025-09-05 10:15:49 -05:00
itsjunetime 0481c14c4d fix CI 2025-09-05 08:41:38 -05:00
itsjunetime a78ea5a08c Update deps for new kittage 2025-09-05 08:31:03 -05:00
June f7eabc9af2 Require CI to run with locked flag so lockfile is always in sync (#100) 2025-08-29 09:17:14 -05:00
itsjunetime 918c192047 Add changelog entry for ctrl+scroll zooming 2025-08-20 21:59:29 -05:00
Per Hurtig 8b03329bba Add ctrl+mousewheel zoom control for fill-screen mode (#94)
* Add ctrl+mousewheel zoom control for fill-screen mode

  Enables mouse-based zooming; Uses ctrl+scroll up/down to
  increase/decrease zoom level while in fill-screen mode, with proper
  mouse capture handling.

* removed unused include
2025-08-20 21:57:55 -05:00
itsjunetime 7064be32f2 Update deps including ratatui-image 2025-08-20 09:23:49 -05:00
itsjunetime 2a03294557 Release version 0.4.2 v0.4.2 2025-08-18 10:18:26 -05:00
Per Hurtig 7c2c6484a6 Fix macOS shared memory filename length limit (fixes issue #92) (#93)
* Fix macOS shared memory filename length limit

Shorten shared memory object names from "__tdf_kittage_{pid}_page_{rn}_{page_num}"
to "tdf_{pid}_{rn}_{page_num}" and change timestamp from nanoseconds to
milliseconds % 1M to stay under macOS's 31-character limit for shm names.

Fixes "File name too long (os error 63)" error when rendering PDFs on macOS.

On macOS, SHM_NAME_MAX: 30

* Fix macOS shared memory filename length limit

Shorten shared memory object names from "__tdf_kittage_{pid}_page_{rn}_{page_num}"
to "tdf_{pid}_{rn}_{page_num}" and change timestamp from nanoseconds to
milliseconds % 1M to stay under macOS's 31-character limit for shm names.

Fixes "File name too long (os error 63)" error when rendering PDFs on macOS.

SHM_NAME_MAX: 30
2025-08-18 10:15:19 -05:00
itsjunetime e65472e571 Add --version flag 2025-08-15 09:43:52 -05:00
itsjunetime 4fd2237b69 Specify on README to use nightly when building even though it should be detected by rust-toolchain.toml 2025-08-11 21:26:17 -05:00
itsjunetime 69fd8ec7e8 Add instructions for zooming and such to help page v0.4.1 2025-08-09 15:58:56 -06:00
itsjunetime ebd902e864 Mark v0.4.0 on changelog v0.4.0 2025-08-06 09:35:38 -06:00
June b6bc76edbb New kitty image backend (#74)
* Initial attempt at supporting new backend for kitty images

* it's almost working !!

* it almost basically works

* yaaayyyy it works

* Use github kittage

* Uhhhh various improvements from kittage and psx-shm

* Remove logging

* incorporate recovering from deleted images

* Make it work correctly with ghostty image eviction too

* fall back to stdout if shms don't work

* Make help page work again

* zooming basically does what you'd expect now

* yay zooming woohoo

* clean up top and bottom rendering

* Only allow zooming in kitty

* Add debug logging and fix cursor placement after image display

* yaaaay zooming out once you're already zoomed in and respecting kitty's limits for how big of an image to display

* mmmm maybe it's finally ready to merge...

* Update deps

* Switch around list of items on changelog

* fmt

* Small fixes to avoid panic and allow zooming back in after zooming out
2025-08-06 09:34:55 -06:00
itsjunetime 777705b902 Update ratatui deps 2025-08-06 09:21:56 -06:00
itsjunetime 035185a40f Improve errors returned from main 2025-08-01 21:28:46 -06:00
itsjunetime 5542daffb6 Update deps and mark clang as dependency in README 2025-07-24 08:55:10 -06:00
itsjunetime f0a6e23f8a And use the normal values for black and white in for_profiling 2025-06-05 17:30:27 -06:00
itsjunetime f0afd22ff5 Don't tint if colors are default 2025-06-05 17:20:09 -06:00
itsjunetime 8d65f0e3f5 Update deps 2025-06-05 16:48:50 -06:00
JanNeuendorf e16163efb8 Custom Colors (#70)
* First implementation of custom colors

* Remove use-statement

Co-authored-by: June <61218022+itsjunetime@users.noreply.github.com>

* Cleaned up help-text

Co-authored-by: June <61218022+itsjunetime@users.noreply.github.com>

* Removed superfluous features from csscolorparser

* Fix for clippy

* Clarify how to pass in custom colors

* Explicitly install clippy and rustfmt in CI

* Better error handling when colors can not be parsed

Co-authored-by: June <61218022+itsjunetime@users.noreply.github.com>

* More elegant type conversion

Co-authored-by: June <61218022+itsjunetime@users.noreply.github.com>

* Made clippy happy

---------

Co-authored-by: June <61218022+itsjunetime@users.noreply.github.com>
Co-authored-by: itsjunetime <junewelker@gmail.com>
2025-05-28 11:16:07 -06:00
itsjunetime 2f4e2a54bc Update ratatui deps with upstream 2025-05-26 13:17:31 -06:00
itsjunetime 0bfacd8757 Update deps and more-compressed image 2025-05-20 19:56:11 -06:00
itsjunetime 5c7073b31e Update to crates.io mupdf 2025-04-28 12:44:22 -06:00
itsjunetime 061863d34c Update sccache action to get CI working again 2025-04-20 11:37:18 -06:00
itsjunetime f044a7fa4d Update deps 2025-04-20 11:19:34 -06:00
itsjunetime 475d45a6f6 Clarify some installation and build behavior in README.md 2025-04-14 12:11:02 -06:00
itsjunetime 69d5f96375 Update deps and do some code simplifications 2025-03-23 12:57:38 -06:00
itsjunetime 595f23de6f Fix some more issues preventing tests from finishing and causing excessive re-renders 2025-03-17 08:51:57 -06:00
itsjunetime d8ee0744b8 Fix issue with search results not being highlighted sometimes 2025-03-16 21:59:36 -06:00
itsjunetime 0c81e3cc3a Better parse window size if tciogetwinsz reports it incorrectly 2025-03-15 12:26:11 -06:00
itsjunetime fc10dc8ffe Dramatically improve search performance by pausing rendering every once-in-a-while 2025-03-06 16:26:56 -07:00
itsjunetime ef8ace4f35 Use new mupdf search API 2025-03-06 10:30:05 -07:00
itsjunetime 6462c09030 fmt 2025-03-04 19:05:37 -07:00
itsjunetime 54cc2125af Update deps 2025-03-04 10:21:30 -07:00
itsjunetime d00ae5c981 Update Cargo.toml version (oops) 2025-03-01 19:15:14 -07:00
itsjunetime 36279f5258 Remove now-unnecessary loop 2025-03-01 19:12:08 -07:00