feat(clipboard): fill the WSL2 clipboard gap with win32yank #161
No Reviewers
Labels
Clear labels
Area/CI
Area/Completions
Area/Components
Area/Config
Area/Docs
Area/Functions
Area/Integrations
Area/Prompt & Theme
Area/Scripts
Area/Tests
Compat/Breaking
Kind/Bug
Kind/Chore
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Performance
Kind/Refactor
Kind/Security
Kind/Testing
good first issue
help wanted
.github/workflows and repository automation
completions/ - tab-completion scripts
The opinionated-component system (C1-C6)
config.fish and conf.d/ - startup and environment
docs/manual/ and the generated manual, man page, and site
functions/ - user-facing functions and helpers
integrations/ - third-party tool wiring
themes/ and prompt appearance
scripts/ - standalone helper scripts
tests/ - the syntax lint and functional suite
Breaking change that won't be backward compatible
Something is not working
Tooling, dependencies, and housekeeping
Documentation changes
Improve existing functionality
New functionality
Makes existing behavior faster or lighter
Restructures code without changing behavior
This is security issue
Issue or pull request related to testing
Well-scoped and self-contained; a good place to start
Maintainer is looking for someone to pick this up
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Milestone
No items
No Milestone
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: rootiest/fish-config#161
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Follow-up to #160: the OS-compatibility doc flagged clipboard access under WSL2 as needing a
win32yank-specific path that didn't exist. This fills that gap.Changes
y,p,paste,histnow fall back throughwl-copy/wl-paste(Wayland) →xclip(X11) →win32yank.exe(WSL2), extracted into two shared helpers (_fish_clipboard_copy,_fish_clipboard_paste) instead of four near-duplicate chains.histpreviously only triedwl-copywith no fallback at all — it now gets the same X11/WSL2 coverage as the other three.fish-depscan installwin32yank.exeitself: a new optional-tier catalog entry, gated on WSL2 detection (microsoftin/proc/sys/kernel/osrelease) so it never surfaces on a plain Linux box's install/sync prompts — only in the informationalfish-depsstatus listing, same as any other optional tool. Downloads the x86_64 binary from GitHub releases to~/.local/bin/win32yank.exe;fish-deps updaterefreshes an existing install the same way.10-installation.md,06-dependency-catalog.md,08-components-reference/04-c4-*.md, README) updated to match.Verification
fish tests/run-tests.fish— 759/759 assertions passedpython3 docs/verify-manual.py— 83/84 (pre-existing, unrelatedtest_concat_roundtrips_originalfailure, confirmed present onmainbefore this branch)y/p/pastethrough the refactored helpers on this box (wl-copy/wl-paste path)win32yank-x64.zip→ flatwin32yank.exe) against the live release before writing the installerosreleasestring, and thatfish-deps install --optionalstays silent about win32yank on this (non-WSL) machine