wslshot 0.0.12__py3-none-any.whl → 0.1.0__py3-none-any.whl

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.
@@ -1,175 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: wslshot
3
- Version: 0.0.12
4
- Home-page: https://github.com/sderev/wslshot
5
- Author: Sébastien De Revière
6
- License: Apache Licence, Version 2.0
7
- Project-URL: Documentation, https://github.com/sderev/wslshot
8
- Project-URL: Issues, http://github.com/sderev/wslshot/issues
9
- Project-URL: Changelog, https://github.com/sderev/wslshot/releases
10
- Requires-Python: >=3.8
11
- Description-Content-Type: text/markdown
12
- License-File: LICENSE
13
- Requires-Dist: click
14
- Requires-Dist: click-default-group
15
-
16
- # Windows Screenshot for Linux
17
-
18
- `wslshot` is a CLI tool designed to fetch the latest screenshot(s) from a shared directory with a Windows host, copy them to a designated directory in a Linux VM, and output their new Markdown-formatted paths.
19
-
20
- Simply take a screenshot using the Windows Snipping tool (`win + shift + S`), and then run `wslshot` in your terminal to effortlessly transfer the image.
21
-
22
- ![demo_0](https://github.com/sderev/wslshot/assets/24412384/656b0595-0c27-41fa-966a-d6ca39ec410a)
23
-
24
- <!-- TOC -->
25
- ## Table of Contents
26
-
27
- 1. [Features](#features)
28
- 1. [Installation](#installation)
29
- 1. [Install with `pip`](#install-with-pip)
30
- 1. [Install with `pipx` (Recommended)](#install-with-pipx-recommended)
31
- 1. [Windows Configuration](#windows-configuration)
32
- 1. [Shared Folder Configuration](#shared-folder-configuration)
33
- 1. [For WSL Users](#for-wsl-users)
34
- 1. [For Virtual Machine Users](#for-virtual-machine-users)
35
- 1. [Configuration of `wslshot`](#configuration-of-wslshot)
36
- 1. [Fetching Screenshots](#fetching-screenshots)
37
- 1. [Specifying an Image Path Instead of a Directory](#specifying-an-image-path-instead-of-a-directory)
38
- 1. [Output](#output)
39
- 1. [File Copy Behavior](#file-copy-behavior)
40
- 1. [Integration in Vim](#integration-in-vim)
41
- <!-- /TOC -->
42
-
43
- ## Features
44
-
45
- * Set a default source directory for screenshots.
46
- * Designate a custom source or destination directory per operation.
47
- * Or automatically detect `/assets/images/` or other typical folders for this use case.
48
- * Fetch the most recent screenshot or specify a number of recent screenshots to fetch.
49
- * Control automatic staging of screenshots when copied to a git repository.
50
- * Set a default output format (Markdown, HTML, plain text of the path) and specify a custom format per operation.
51
-
52
- ## Installation
53
-
54
- Ensure you have Python 3.8 or later installed on your system.
55
-
56
- ### Install with `pip`
57
-
58
- ```bash
59
- python3 -m pip install wslshot
60
- ```
61
-
62
- ### Install with `pipx` (Recommended)
63
-
64
- ```bash
65
- pipx install wslshot
66
- ```
67
-
68
- ## Windows Configuration
69
-
70
- Before using `wslshot`, it's essential to configure the Windows Snipping Tool to save screenshots automatically. It should be the default behavior; if it's not, here's how to enable automatic saving of screenshots in the Windows Snipping Tool:
71
-
72
- 1. Open the Snipping Tool.
73
- 1. Click on "Settings...".
74
- 1. Toggle the box that says "Automatically save screenshots".
75
-
76
- ## Shared Folder Configuration
77
-
78
- For `wslshot` to fetch screenshots from your Windows host, you need to set up a shared directory between your Windows host and your Linux VM.
79
-
80
- ### For WSL Users
81
-
82
- If you are using the Windows Subsystem for Linux (WSL), you can directly access your Windows file system from your WSL distro. The Windows `C:` drive, for example, can be found at `/mnt/c/` within your WSL environment. Therefore, you can directly use a folder on your Windows file system as the source directory for `wslshot`.
83
-
84
- ### For Virtual Machine Users
85
-
86
- If you are using a traditional virtual machine managed by a hypervisor (e.g., VirtualBox, VMware, Hyper-V), you'll need to set up a shared folder with your Windows host and the Linux VM. The process varies depending on your VM provider, but here are general steps:
87
-
88
- 1. Choose a folder on your Windows host to use as your screenshot folder. This should be the same folder where you configured your Snipping Tool to automatically save screenshots.
89
- 1. Go into your VM settings and locate the shared folders option. Add the chosen screenshot folder as a shared folder.
90
- 1. Depending on your VM settings, this folder will now be available at a certain path in your Linux environment. Use this path as your source directory for `wslshot`.
91
-
92
- Remember to consult your VM provider's documentation for specific instructions on how to set up shared folders.
93
-
94
- ## Configuration of `wslshot`
95
-
96
- Before using `wslshot`, you may want to configure it to suit your needs. You can do this using the `configure` command:
97
-
98
- ```bash
99
- wslshot configure --source /path/to/source --auto-stage-enabled True --output-format HTML
100
- ```
101
-
102
- This command allows you to set various options:
103
-
104
- * **`--source` or `-s`**: This option lets you specify the default source directory where `wslshot` will look for screenshots.
105
-
106
- * **`--auto-stage-enabled`**: This option lets you control whether screenshots are automatically staged when copied to a git repository. By default, this option is set to `False`. If this option is set to `True`, any screenshot copied to a git repository will automatically be staged for commit.
107
-
108
- * **`--output-format` or `-f`**: This option lets you set the default output format for the links to the screenshots that `wslshot` creates. The available formats are Markdown, HTML, and the plain text of the path (`plain_text`). If you do not set this option, `wslshot` will output links in Markdown format by default.
109
-
110
- Remember, these are just the default settings. You can override these settings on a per-operation basis by providing the corresponding options when running the `wslshot` command.
111
-
112
- ## Fetching Screenshots
113
-
114
- **Fetch screenshots with the `wslshot` command**:
115
-
116
- ```bash
117
- wslshot
118
- ```
119
-
120
- This will fetch the most recent screenshots from the source directory. If this command is run inside a git repository, it will create the folder `/assets/images` (if it doesn't exist) and copy the screenshot to it.
121
-
122
- **These are the folders automatically detected for the copy**:
123
-
124
- - `/assets/img/`
125
- - `/assets/images/`
126
- - `/img/`
127
- - `/images/`
128
-
129
- **You can also choose a specific number of screenshots**:
130
-
131
- ```bash
132
- wslshot -n 3
133
- ```
134
-
135
- This will fetch the three most recent screenshots.
136
-
137
- **These are all the possible options**:
138
-
139
- ```bash
140
- wslshot [--source /custom/source] [--destination /custom/destination] [--count 3] [--output-format HTML]
141
- ```
142
-
143
- ## Specifying an Image Path Instead of a Directory
144
-
145
- To utilize this feature, provide the path to the image you'd like to copy as an argument when running the `wslshot` command:
146
-
147
- ```bash
148
- wslshot /mnt/c/user/my_name/Images/magic.gif
149
- ```
150
-
151
- Note that you can _drag and drop_ a file into the Windows Terminal to automatically populate its path.
152
-
153
- ### Output
154
-
155
- Upon success, the command will output the new path of the image in Markdown format:
156
-
157
- ```bash
158
- ![magic.gif](/assets/images/animated_magic.gif)
159
- ```
160
-
161
- ### File Copy Behavior
162
-
163
- As with the standard usage of `wslshot`, the specified image will be copied to your designated folder on the Linux VM.
164
-
165
- ## Integration in Vim
166
-
167
- If `wslshot` is in your PATH (this is by default if you installed it with `pipx`), you can easily call it with a shebang command.
168
-
169
- ```vim
170
- :.!wslshot
171
- ```
172
-
173
- ---
174
-
175
- <https://github.com/sderev/wslshot>
@@ -1,8 +0,0 @@
1
- wslshot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- wslshot/cli.py,sha256=LMllX5FB_zTZhsn5txaazHsZw_ZuoEwNoUmFkQh-Oow,21307
3
- wslshot-0.0.12.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
4
- wslshot-0.0.12.dist-info/METADATA,sha256=6XkfRVGG0bMPuTpJiO5RhX6wdTMkwWFQNJSqsOnF2ww,7101
5
- wslshot-0.0.12.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
6
- wslshot-0.0.12.dist-info/entry_points.txt,sha256=SoRqxnUYd6iG2XqUEXWy8LGMQcO2wd4f3LYmiMQLGzI,48
7
- wslshot-0.0.12.dist-info/top_level.txt,sha256=m3kSpN3aTbfg9dKJmpHI222jB5PBn2lQja7Uf77xjtA,8
8
- wslshot-0.0.12.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- wslshot