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

未关闭
#36 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
github-actions, shell, swift
领域
ci-cd, desktop, testing

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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?
主要语言
Swift
星标
787
派生
80
平均合并
1 天 21 小时
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nilbuild/tinyhand 的其他 Issue

查看 nilbuild/tinyhand 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。