gabm / Satty

Satty - Modern Screenshot Annotation. A tool inspired by Swappy and Flameshot.
Mozilla Public License 2.0
388 stars 18 forks source link

Some minor issues #44

Closed Ligthiago closed 3 months ago

Ligthiago commented 4 months ago

I tried this tool recently, it's good, but I and found some minor problems with it, which can probably be fixed.

1) Dot at start of brush tool. No clue is this a my specific problem, maybe something with the touchpad, but the brush tool always starts with a dot that will not undo with line and stay as a separate item, so I need to tap CTRL-Z twice. dot

2) Sharp, almost polygonal curved lines. Brush tool with fast movements doesn't look very smooth. image psd(2)

3) Lack of short options equivalents. Help message right now is looks like this:

Modern Screenshot Annotation. A Screenshot Annotation Tool inspired by Swappy and Flameshot.

Usage: satty [OPTIONS] --filename <FILENAME>

Options:
  -c, --config <CONFIG>
          Path to the config file. Otherwise will be read from XDG_CONFIG_DIR/satty/config.toml
  -f, --filename <FILENAME>
          Path to input image or '-' to read from stdin
      --fullscreen
          Start Satty in fullscreen mode
      --output-filename <OUTPUT_FILENAME>
          Filename to use for saving action. Omit to disable saving to file. Might contain format specifiers: <https://docs.rs/chrono/latest/chrono/format/strftime/index.html>
      --early-exit
          Exit directly after copy/save action
      --initial-tool <TOOL>
          Select the tool on startup [aliases: init-tool] [possible values: pointer, crop, line, arrow, rectangle, text, marker, blur, brush]
      --copy-command <COPY_COMMAND>
          Configure the command to be called on copy, for example `wl-copy`
      --annotation-size-factor <ANNOTATION_SIZE_FACTOR>
          Increase or decrease the size of the annotations
  -h, --help
          Print help
  -V, --version
          Print version

As far as I can see, there are no short equivalents for very long --output-filename or --annotation-size-factor options. Probably -o for --output-filename, -t for --initial-tool, capital -F for --fullscreen would be nice and save a lot of time for typing. It just minor QOL improvement.

PS. Using last 0.9.0 version built from source on Hyprland

gabm commented 4 months ago

Thank you so much for this detailed report.. All of them are problems, yes.

As always, any contribution is welcome!

gabm commented 4 months ago

@Ligthiago once v0.11.0 is available for you, can you check that 1) and 2) are fixed?

Ligthiago commented 4 months ago

1) Fixed for me 2) Much smoother, still some polygonal lines when moving the mouse really fast, but fine by me. Also, right now I can't check it on a HiDPI display like I did the first time.

Also while testing the new version I found another bug: after resizing window line is not drawn exactly under the cursor, check the video. It also doesn't draw under the cursor with the --fullscreen flag if the image is not the full screen size, for example only part of the screen.

https://github.com/gabm/Satty/assets/142721811/0bbaba35-990d-4bc8-9045-ba111f85a0de

gabm commented 4 months ago

Thank you for testing and your report. Yes.. this is a regression introduced by #53...

gabm commented 4 months ago

The fix to this regression has been released as v0.11.1. Can you check?

Ligthiago commented 4 months ago

Fixed for me

gabm commented 3 months ago

great!