Repository navigation
Feature: fit modes for pen inputs. - #9
Open
Endermanbugzjfc wants to merge 10 commits into
Open
Endermanbugzjfc wants to merge 10 commits into
Endermanbugzjfc wants to merge 10 commits into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Endermanbugzjfc
force-pushed
the
Endermanbugzjfc-fit-modes
branch
from
July 25, 2026 07:01
d37af60 to
76ba0b5
Compare
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Endermanbugzjfc
marked this pull request as ready for review
July 28, 2026 02:20
Owner
|
Nice! I will take a look at this later, thanks :) |
Author
|
I have been using the cover mode for a couple of days and it fits my workflow well. |
Endermanbugzjfc
marked this pull request as draft
August 29, 2026 21:37
Carry the --screen option from the multiscreen branch, but accept a list (repeatable flag / TOML array) merged into Vec<String>. fit::resolve now filters displays to the selected screens and fits against their combined bounding box instead of the whole desktop. A non-fill fit requires at least one --screen (validated). Also brings the screens subcommand and display lookup helpers over for usability. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PkMvA5dqyHssFDxHyV3k2i
Author
|
Update to PR: |
Author
|
Might be a good idea if we just use an |
Author
|
After testing on KDE Plasma, I believe that the dependency on display-info crate data should be dropped due to its questionable accuracy. Fit modes should accept direct dimension values from the user. |
- Update stale --fit help referencing the removed --screen flag - Document the --aspect-ratio/--resolution flags with format examples - Reject both aspect_ratio and resolution set together via file config - Drop redundant closures and fix a panic-message typo Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DF7dojvwM3LXJLhVHGj83D
`#[serde(try_from = "&str")]` only works with deserializers that can lend borrowed strings; toml (and json) produce owned ones, so any file config setting aspect_ratio or resolution failed with "expected a borrowed string". Switch to `try_from = "String"` with a delegating TryFrom<String> impl and add a regression test. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CyyyCxzgE5RzEiy22EkG4u
Endermanbugzjfc
marked this pull request as ready for review
September 14, 2026 02:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
This pull request adds 2 extra fit modes to transform pen inputs.
Currently, pen paths on the 4:3 screen of reMarkable 2 are stretched to fill the 16:9 monitors. This might create annoyance for users' muscle memory for those who worked on a common drawing tablet with a 16:9 screen.
Changes
A
fitoption has been added, which corresponds to the--fitCLI argument and thefitfield in the config file. The default value is set to "fill" for backward compatibility. It may be set to "fill", "contain", or "cover", or some aliases of those 3 (see--help).An
aspect_ratiooption has been added, which corresponds to the--aspect-ratioCLI argument and theaspect_ratiofield in the config file. It is required for contain or cover fit modes to work.A
resolutionoption has been added, which corresponds to the--resolutionCLI argument and theresolutionfield in the config file. It cannot coexist withaspect_ratioand is handled similarly toaspect_ratiounder the hood but has a different label in the log entries.The following illustration should give a better explanation of the different fit modes (only three of these are implemented):

Live tests
Live tests are done on the following environments:
CPU Architecture: x86_64
OS: Arch Linux
Desktop Environment:
reMarkable: reMarkable 2 version 3.27.1.0
Potentially useful features roadmap
screen_sizeoption that overridesscreenwhen the detection of monitors fails or is yielding inaccurate data.