dirsql 0.4.70 → 0.4.71

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.
@@ -47,8 +47,10 @@ dirsql query "SELECT basename FROM notes ORDER BY basename" -c ./.dirsql.toml
47
47
  ## Notes
48
48
 
49
49
  - `ignore` lives in a config file, so it needs one:
50
- [configless mode](../reference/cli.md#configless-mode) indexes
51
- everything with no ignores.
50
+ [configless mode](../reference/cli.md#configless-mode) has no `ignore`
51
+ list, though its path-tables still apply the built-in
52
+ [skip rules](../reference/path-tables.md#skip-rules) and respect
53
+ `.gitignore`.
52
54
  - The top-level `.dirsql/` directory is always excluded, ignore list or
53
55
  not — it is reserved for `dirsql`'s own metadata
54
56
  ([config reference](../reference/config.md#dirsql-keys)).
@@ -269,8 +269,10 @@ defines **no named tables**. Filesystem queries go through
269
269
  scanned live. A `./.dirsql.toml` sitting in the current directory is **not**
270
270
  auto-loaded (pass it with `-c ./.dirsql.toml` to use it).
271
271
 
272
- `'./'` is the whole root — every file at any depth, one row per file, with
273
- all seven [stat columns](./columns.md): `path`, `basename`, `dir`, `ext`,
272
+ `'./'` lists the files directly inside the root, one level, like `ls`;
273
+ `'./**'` reaches every depth. Both scans apply the path-table
274
+ [skip rules](./path-tables.md#skip-rules), and each returns one row per file
275
+ with all seven [stat columns](./columns.md): `path`, `basename`, `dir`, `ext`,
274
276
  `size`, `mtime`, `ctime`.
275
277
 
276
278
  ```bash
@@ -287,10 +287,25 @@ beneath it; one above it is never read.
287
287
 
288
288
  ### Hidden files
289
289
 
290
- Dotfiles are ordinary files: `'./'` and `'./*'` include them, with or without
291
- `--no-ignore`. This is a deliberate divergence from fd/ripgrep — querying
292
- dotfile directories (`.claude/`, …) is a first-class `dirsql` use case. Add an
293
- `ignore` pattern if you would rather not see them.
290
+ A path component starting with `.` is skipped unless the path spells it, the
291
+ rule `ls` and `fd` use. `'./'` and `'./**'` skip `.gitignore`, `.env` and
292
+ everything under `.claude/`; naming the component lists it:
293
+
294
+ | You write | dirsql scans |
295
+ | --- | --- |
296
+ | `'./**'` | every file, skipping dot-named files and directories at any depth |
297
+ | `'./.claude'`, `'./.claude/**'` | the files under `.claude/` |
298
+ | `'./.env'` | that one file |
299
+ | `'./**/.env'` | every `.env` whose parent directories are not themselves dot-named |
300
+ | `'~/.claude/projects/*/*.jsonl'` | the walk starts inside `.claude/`, so nothing there is hidden |
301
+
302
+ A spelled component may be a glob of its own: `'./.env*'` lists `.env.local`,
303
+ and `'./.*'` lists every dot-named entry one level down. A dot component the
304
+ path does not spell stays hidden however deep the scan goes, so
305
+ `'./.claude/**'` lists `.claude/sub/notes.md` but not `.claude/sub/.cache/x`.
306
+
307
+ This is independent of `.gitignore`: [`--no-ignore`](./cli.md#flags) restores
308
+ gitignored files and leaves dot-named entries hidden.
294
309
 
295
310
  ## Joining against declared tables
296
311
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dirsql",
3
- "version": "0.4.70",
3
+ "version": "0.4.71",
4
4
  "description": "Ephemeral SQL index over a local directory",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/thekevinscott/dirsql",
@@ -221,10 +221,10 @@
221
221
  ]
222
222
  },
223
223
  "optionalDependencies": {
224
- "@dirsql/lib-linux-x64-gnu": "0.4.70",
225
- "@dirsql/lib-linux-arm64-gnu": "0.4.70",
226
- "@dirsql/lib-darwin-x64": "0.4.70",
227
- "@dirsql/lib-darwin-arm64": "0.4.70",
228
- "@dirsql/lib-win32-x64-msvc": "0.4.70"
224
+ "@dirsql/lib-linux-x64-gnu": "0.4.71",
225
+ "@dirsql/lib-linux-arm64-gnu": "0.4.71",
226
+ "@dirsql/lib-darwin-x64": "0.4.71",
227
+ "@dirsql/lib-darwin-arm64": "0.4.71",
228
+ "@dirsql/lib-win32-x64-msvc": "0.4.71"
229
229
  }
230
230
  }