tacklebox-cli 0.4.0__tar.gz → 0.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/PKG-INFO +4 -4
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/tacklebox/commands/clipboard.py +7 -3
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/tacklebox/version.py +2 -2
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/.gitignore +0 -0
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/LICENSE.md +0 -0
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/pyproject.toml +0 -0
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/tacklebox/__init__.py +0 -0
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/tacklebox/commands/__init__.py +0 -0
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/tacklebox/commands/find_desktop_entry.py +0 -0
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/tacklebox/commands/prepend_to_file.py +0 -0
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/tacklebox/commands/version.py +0 -0
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/tacklebox/entrypoint.py +0 -0
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/tacklebox/sync.py +0 -0
- {tacklebox_cli-0.4.0 → tacklebox_cli-0.4.2}/tacklebox/utils.py +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tacklebox-cli
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: A small collection of CLI utilities.
|
|
5
5
|
Project-URL: Homepage, https://c.csw.im/cswimr/tacklebox
|
|
6
6
|
Project-URL: Issues, https://c.csw.im/cswimr/tacklebox/issues
|
|
7
|
-
Project-URL: Source Archive, https://c.csw.im/cswimr/tacklebox/archive/
|
|
7
|
+
Project-URL: Source Archive, https://c.csw.im/cswimr/tacklebox/archive/bd061b0360efe66956b1bfd3d7ec74b23cd84d67.tar.gz
|
|
8
8
|
Author-email: cswimr <seaswimmerthefsh@gmail.com>
|
|
9
9
|
License-Expression: MIT
|
|
10
10
|
License-File: LICENSE.md
|
|
@@ -20,14 +20,14 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
[<img alt="Actions Status" src="https://c.csw.im/cswimr/tacklebox/badges/workflows/actions.yml/badge.svg?style=plastic">](https://c.csw.im/cswimr/tacklebox/actions?workflow=actions.yml)
|
|
21
21
|
[<img alt="PyPI - Version" src="https://img.shields.io/pypi/v/tacklebox-cli?style=plastic">](https://pypi.org/project/tacklebox-cli/)
|
|
22
22
|
[<img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/tacklebox-cli?style=plastic">](https://pypi.org/project/tacklebox-cli/)
|
|
23
|
-
[<img alt="PyPI - License" src="https://img.shields.io/pypi/l/tacklebox-cli?style=plastic">](https://c.csw.im/cswimr/tacklebox/src/tag/0.4.
|
|
23
|
+
[<img alt="PyPI - License" src="https://img.shields.io/pypi/l/tacklebox-cli?style=plastic">](https://c.csw.im/cswimr/tacklebox/src/tag/0.4.2/LICENSE.md)
|
|
24
24
|
tacklebox-cli offers a suite of useful CLI tools.
|
|
25
25
|
|
|
26
26
|
## Usage
|
|
27
27
|
|
|
28
28
|
### tacklebox copy / paste
|
|
29
29
|
|
|
30
|
-
Cross-platform clipboard management tool. Uses system tools such as `wl-copy` on Linux Wayland or `clip.exe` on Windows, and [OSC 52](https://www.reddit.com/r/vim/comments/k1ydpn/a_guide_on_how_to_copy_text_from_anywhere/) escape codes when **copying** over SSH or when no other tools are available. See [`copy_with_tooling()`](https://c.csw.im/cswimr/tacklebox/src/tag/0.4.
|
|
30
|
+
Cross-platform clipboard management tool. Uses system tools such as `wl-copy` on Linux Wayland or `clip.exe` on Windows, and [OSC 52](https://www.reddit.com/r/vim/comments/k1ydpn/a_guide_on_how_to_copy_text_from_anywhere/) escape codes when **copying** over SSH or when no other tools are available. See [`copy_with_tooling()`](https://c.csw.im/cswimr/tacklebox/src/tag/0.4.2/tacklebox/commands/clipboard.py) for all supported tools.
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
$ echo "a" | tacklebox copy --trim && tacklebox paste
|
|
@@ -45,7 +45,7 @@ def _try_command(mode: ClipboardMode, cmd: list[str], verbose: bool = False, dat
|
|
|
45
45
|
result = subprocess.run(
|
|
46
46
|
cmd,
|
|
47
47
|
input=data.encode(encoder) if data else None,
|
|
48
|
-
|
|
48
|
+
capture_output=True,
|
|
49
49
|
env=get_environment(),
|
|
50
50
|
timeout=30,
|
|
51
51
|
)
|
|
@@ -71,6 +71,7 @@ def use_tooling(
|
|
|
71
71
|
- The content of the `command` argument.
|
|
72
72
|
- If `mode == ClipboardMode.COPY`:
|
|
73
73
|
- Linux (Wayland):
|
|
74
|
+
- `wl-copy -o`
|
|
74
75
|
- `wl-copy`
|
|
75
76
|
- `copyq add -`
|
|
76
77
|
- Linux (X11):
|
|
@@ -115,10 +116,13 @@ def use_tooling(
|
|
|
115
116
|
|
|
116
117
|
tools: dict[ClipboardMode, dict[str, list[list[str]]]] = {
|
|
117
118
|
ClipboardMode.COPY: {
|
|
118
|
-
"wayland": [["wl-copy"], ["copyq", "add", "-"]],
|
|
119
|
+
"wayland": [["wl-copy", "-o"], ["wl-copy"], ["copyq", "add", "-"]],
|
|
119
120
|
"x11": [["xclip", "-selection", "clipboard"], ["xsel", "--clipboard", "--input"], ["copyq", "add", "-"]],
|
|
120
121
|
"darwin": [["reattach-to-user-namespace", "pbcopy"], ["pbcopy"]],
|
|
121
|
-
"windows": [
|
|
122
|
+
"windows": [
|
|
123
|
+
["win32yank.exe", "-i"],
|
|
124
|
+
["clip.exe"],
|
|
125
|
+
],
|
|
122
126
|
},
|
|
123
127
|
ClipboardMode.PASTE: {
|
|
124
128
|
"wayland": [["wl-paste", "--no-newline"], ["copyq", "read", "0"]],
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.4.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 4,
|
|
21
|
+
__version__ = version = '0.4.2'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 4, 2)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|