Would you take a PR for hand gestures, held with ⌃⇧ and a key?

Open
#36 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions, shell, swift
Domain
ci-cd, desktop, testing

Research direction

This issue is a proposal and asks the maintainer to decide on scope before any PR is opened, so start by answering its three questions rather than writing code. The fork change is in xynova/tinyhand PR #1 and touches the gesture keys tied to hand files such as hand_line_s.webp, the Swift test target, the CI step, and scripts/preview.sh. Done means the maintainer has chosen whether the work ships as one PR or several and which Line art gestures are included.

Written by the indexing model from the issue text.

Description

I've built hand gestures for TinyHand on my fork, and I'd like to send them upstream if you want them. While the pointer is on, holding ⌃⇧ and a gesture's key swaps the pointing hand for that pose, and letting go makes it point again.

Line art pointing at a slide Holding ⌃⇧S: shaka Holding ⌃⇧O: OK
Pointing⌃⇧S⌃⇧O

Each hand has its own gestures, and TinyHand finds them by file name, so hand_line_s.webp is the Line art hand's ⌃⇧S. People can also add gestures to the hands they make in Settings, on a key they pick. The fork adds one stock hand with gestures, Line art, traced from the lavender hand, with a shaka (S), an OK (O) and a middle finger (M).

A count badge marks the hands that have gestures, and hovering one in the toolbar or the hand picker previews them.

Toolbar with Line art's badge and the hover preview of its gestures

TinyHand registers only the selected hand's keys, and only while the pointer is on, so those shortcuts stay free the rest of the time. ⌃⇧ also stays clear of Option, which TinyHand uses for click for real.

The whole change is in https://github.com/xynova/tinyhand/pull/1, and it applies on top of your current main (1.1.0). You can try it without touching your own install: scripts/preview.sh install builds a separate "TinyHand Preview", and scripts/preview.sh uninstall removes it again.

Before I open a PR, I'd like to check a few things with you:

  • One PR or several? The change also adds a Swift test target with a CI step, the preview script, and a fix for thumbnails that stretch a hand near its picture's edge. Each of these could go in on its own.
  • Should Line art ship with the middle finger, or only the shaka and the OK?
  • Is there anything about the shortcuts or the Settings card you'd want done differently?
Dominant language
Swift
Stars
787
Forks
80
Avg merge
1d 21h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nilbuild/tinyhand

All issues in nilbuild/tinyhand

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.