@@ -128,205 +128,6 @@ SGVsbG8sIFdvcmxkIQ==
128128dkit clipboard paste | grep " search term"
129129```
130130
131- ### history - Clipboard History
132-
133- #### Purpose
134- View and manage clipboard history.
135-
136- #### Command Signature
137- ``` bash
138- dkit clipboard history [options]
139- ```
140-
141- ** Options:**
142- - ` --limit <n> ` - Number of entries to show (default: 10)
143- - ` --all ` - Show all history
144- - ` --clear ` - Clear history
145- - ` --format <text|json> ` - Output format
146- - ` --search <query> ` - Search history
147-
148- #### Output Format
149-
150- ** Text (default):**
151- ```
152- [dkit] Clipboard history (last 10 items):
153-
154- 1. [2 minutes ago] Hello, World! (13 bytes)
155- 2. [5 minutes ago] dkit clipboard copy README.md (1,234 bytes)
156- 3. [10 minutes ago] https://github.com/user/repo (28 bytes)
157- 4. [1 hour ago] {
158- "key": "value"
159- } (45 bytes)
160- 5. [2 hours ago] Long text content... (2,456 bytes)
161-
162- Use 'dkit clipboard history <n>' to view full content
163- ```
164-
165- ** View specific entry:**
166- ``` bash
167- dkit clipboard history 3
168-
169- [dkit] Clipboard entry # 3 (10 minutes ago):
170-
171- https://github.com/user/repo
172- ```
173-
174- ** JSON:**
175- ``` json
176- {
177- "history" : [
178- {
179- "id" : 1 ,
180- "content" : " Hello, World!" ,
181- "timestamp" : " 2025-12-23T14:28:00Z" ,
182- "size" : 13 ,
183- "type" : " text/plain"
184- }
185- ]
186- }
187- ```
188-
189- ** Search:**
190- ``` bash
191- dkit clipboard history --search " github"
192-
193- [dkit] Found 2 matches:
194-
195- 3. [10 minutes ago] https://github.com/user/repo
196- 7. [1 day ago] git clone https://github.com/...
197- ```
198-
199- ** Clear history:**
200- ``` bash
201- dkit clipboard history --clear
202-
203- [dkit] Clear clipboard history? [y/N]: y
204- [dkit] ✓ Clipboard history cleared (15 entries removed)
205- ```
206-
207- ### restore - Restore from History
208-
209- #### Purpose
210- Restore a previous clipboard entry.
211-
212- #### Command Signature
213- ``` bash
214- dkit clipboard restore < id> [options]
215- ```
216-
217- ** Arguments:**
218- - ` id ` - History entry ID or index
219-
220- ** Options:**
221- - ` --peek ` - Show content without restoring
222-
223- #### Output
224-
225- ``` bash
226- dkit clipboard restore 3
227-
228- [dkit] Restored clipboard entry # 3 to clipboard
229- [dkit] Content: https://github.com/user/repo (28 bytes)
230- ```
231-
232- ** Peek without restoring:**
233- ``` bash
234- dkit clipboard restore 3 --peek
235-
236- [dkit] Clipboard entry # 3:
237-
238- https://github.com/user/repo
239-
240- (Not restored to clipboard)
241- ```
242-
243- ### transform - Transform Clipboard Content
244-
245- #### Purpose
246- Apply transformations to clipboard content.
247-
248- #### Command Signature
249- ``` bash
250- dkit clipboard transform < operation> [options]
251- ```
252-
253- ** Arguments:**
254- - ` operation ` - Transformation to apply
255-
256- ** Options:**
257- - ` --copy-result ` - Copy transformed result back to clipboard (default: true)
258- - ` --output <file> ` - Write result to file
259-
260- #### Available Transformations
261-
262- ** Text transformations:**
263- - ` uppercase ` - Convert to uppercase
264- - ` lowercase ` - Convert to lowercase
265- - ` trim ` - Remove leading/trailing whitespace
266- - ` reverse ` - Reverse text
267- - ` base64-encode ` - Encode as base64
268- - ` base64-decode ` - Decode from base64
269- - ` url-encode ` - URL encode
270- - ` url-decode ` - URL decode
271- - ` json-pretty ` - Pretty-print JSON
272- - ` json-minify ` - Minify JSON
273- - ` markdown-to-html ` - Convert Markdown to HTML
274- - ` html-to-text ` - Extract text from HTML
275-
276- #### Examples
277-
278- ** Uppercase:**
279- ``` bash
280- dkit clipboard transform uppercase
281-
282- [dkit] Transformed clipboard content:
283-
284- Original: Hello, World!
285- Result: HELLO, WORLD!
286-
287- ✓ Result copied to clipboard
288- ```
289-
290- ** Pretty-print JSON:**
291- ``` bash
292- # Clipboard contains: {"key":"value","nested":{"a":1}}
293- dkit clipboard transform json-pretty
294-
295- [dkit] Transformed clipboard content:
296-
297- {
298- " key" : " value" ,
299- " nested" : {
300- " a" : 1
301- }
302- }
303-
304- ✓ Result copied to clipboard
305- ```
306-
307- ** Base64 encode:**
308- ``` bash
309- dkit clipboard transform base64-encode
310-
311- [dkit] Transformed clipboard content:
312-
313- Original: Hello, World!
314- Result: SGVsbG8sIFdvcmxkIQ==
315-
316- ✓ Result copied to clipboard
317- ```
318-
319- ** Chain transformations:**
320- ``` bash
321- dkit clipboard paste | \
322- jq ' .' | \
323- dkit clipboard copy
324-
325- # Or using transform
326- dkit clipboard transform json-pretty
327- dkit clipboard transform base64-encode
328- ```
329-
330131### clear - Clear Clipboard
331132
332133#### Purpose
0 commit comments