imsg-grep 0.1.2-darwin

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7cef5eafcce4406fd5d337becf68f32ac9a2f40a20895231792054220106e763
4
+ data.tar.gz: 6a6a717d0c20fa8f5cf17ac7c61e9967bee3ee3880b1ac5846df621807599e94
5
+ SHA512:
6
+ metadata.gz: 7dc965a315ffae770ed3a8e15d4c58db6fa6480ba33c3219a377beef5c216f7cb963c9dc2e9ee8cf4dda0c76e551a57f0032bd9e25ca6ee656dd192d0bdc3a3e
7
+ data.tar.gz: 4ffcf9b52f30390cf20f5da84ee5bddbaa2f4002eafa6c869cc7704dbddf783dc9362918e13c5120ae2a8b42a30461d22e02ee3fc88cfa25dec625780611856c
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Caio Chassot
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,95 @@
1
+ # imsg-grep
2
+
3
+ Search and filter iMessage history from command line.
4
+
5
+ ## Features
6
+
7
+ Search iMessage history with regex patterns, date ranges, and participant filters. Extract links and media files. Output text or JSON.
8
+
9
+ - Contact filtering (sender/recipient matching)
10
+ - Date range queries with relative formats
11
+ - Link extraction (YouTube, Twitter, etc.)
12
+ - File and image attachment search
13
+ - Inline terminal images
14
+ - Boolean expressions
15
+
16
+ ## Requirements
17
+
18
+ macOS, ruby 3.4+, SQLite.
19
+
20
+ iTerm or Ghostty (or other kitty) for image support.
21
+
22
+ ## Installing
23
+
24
+ ```
25
+ gem install imsg-grep
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ ```
31
+ imsg-grep [options] [PATTERN]
32
+ ```
33
+
34
+ ## Key Options
35
+
36
+ **Date filtering:**
37
+ - `-d, --since DATE` - Match after date
38
+ - `-u, --until DATE` - Match before date
39
+
40
+ **Participants:**
41
+ - `-f, --from CONTACT` - Match sender
42
+ - `-t, --to CONTACT` - Match recipients
43
+ - `-w, --with CONTACT` - Match sender or recipients
44
+ - `-c, --chat [PATTERN]` - Match group chats
45
+
46
+ **Messages:**
47
+ - `-M, --message PATTERN` - Match message text
48
+ - `-s, --sent` - Only sent messages
49
+ - `-r, --received` - Only received messages
50
+ - `-n, --max NUM` - Limit results
51
+
52
+ **Links:**
53
+ - `-L, --links [PATTERN]` - Find links
54
+ - `-Y, --youtube` - Find YouTube links
55
+ - `-X, --twitter` - Find Twitter links
56
+
57
+ **Format:**
58
+ - `-l, --one-line` - Compact format
59
+ - `-j, --json` - JSON output
60
+ - `-o, --capture [EXPR]` - Extract matched parts
61
+ - `-k, --count` - Show total count
62
+
63
+ **Media:**
64
+ - `-F, --files [KIND]` - Find file attachments
65
+ - `-g, --images` - Find images with preview
66
+
67
+ See [`--help`](doc/HELP) for more.
68
+
69
+ ## Examples
70
+
71
+ ```bash
72
+ # Basic search
73
+ imsg-grep "hello"
74
+
75
+ # From specific contact since date
76
+ imsg-grep -f Alice -d 2024-01-01 "meeting"
77
+
78
+ # YouTube links in group chats
79
+ imsg-grep -c -Y
80
+
81
+ # Extract usernames from mentions
82
+ imsg-grep -o '@(\w+)' '@\w+'
83
+
84
+ # JSON output
85
+ imsg-grep -j -f Bob -d 1w
86
+ ```
87
+
88
+ ## Date Formats
89
+
90
+ - ISO8601: `2024-12-30`, `2024-12-30T12:45Z`
91
+ - Relative: `1w` (1 week), `30min`, `3a` (3am today)
92
+
93
+ ## Patterns
94
+
95
+ Regular expressions by default. Use `-q` for literal matching, `-i/-I` for case control.
data/bin/img2png ADDED
Binary file