Repository navigation
Expand file tree
/
Copy pathbackslash.toml
More file actions
59 lines (54 loc) · 1.69 KB
/
Copy pathbackslash.toml
File metadata and controls
59 lines (54 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[extension]
id = "text-diff"
title = "Text Diff"
description = "Compare two texts line by line and word by word: clipboard, selection or clipboard history, with a unified patch to copy"
version = "1.0.0"
author = "Backslash"
icon = "bs-layers"
license = "MIT"
categories = ["developer"]
[permissions]
# The texts to compare: the clipboard, and the primary selection (the text
# selected with the mouse) through whichever of these is installed.
clipboard-read = true
run = ["wl-paste", "xclip", "xsel"]
# Backslash's own clipboard history, to compare the last two copies. Read only,
# never sent anywhere.
read = ["~/.local/state/backslash/clipboard.json"]
env = ["HOME"]
[[commands]]
name = "compare"
title = "Compare Clipboard with Selection"
description = "The clipboard against the selected text, or your last two copies: line and word changes, patch"
icon = "bs-layers"
keywords = [
"diff",
"compare",
"difference",
"patch",
"changes",
"clipboard",
"selection",
"comparer",
"différence",
"différences",
"presse-papiers",
]
[[commands]]
name = "texts"
title = "Compare Texts"
description = "Paste or type two texts and see what changed, line by line and word by word"
icon = "bs-layers"
keywords = ["diff", "compare", "texts", "patch", "unified", "comparer", "textes", "différence"]
[[commands]]
name = "history"
title = "Compare Clipboard History"
description = "Pick two of your recent copies and compare them"
icon = "bs-history"
keywords = ["diff", "compare", "clipboard", "history", "copies", "historique", "comparer", "presse-papiers"]
[[preferences]]
name = "context"
title = "Context lines"
description = "Unchanged lines shown around each change (0 to 50)"
type = "number"
default = 3