unison/unison-src/transcripts/find-command.md

44 lines
605 B
Markdown
Raw Permalink Normal View History

```ucm:hide
2024-06-26 21:03:22 +03:00
scratch/main> builtins.merge lib.builtin
```
```unison:hide
2022-07-11 18:10:04 +03:00
foo = 1
lib.foo = 2
lib.bar = 3
cat.foo = 4
cat.lib.foo = 5
cat.lib.bar = 6
somewhere.bar = 7
2022-07-11 18:10:04 +03:00
```
```ucm:hide
scratch/main> add
2022-07-11 18:10:04 +03:00
```
```ucm
scratch/main> find foo
scratch/main> view 1
scratch/main> find.all foo
scratch/main> view 1
```
```ucm
scratch/main> find-in cat foo
scratch/main> view 1
scratch/main> find-in.all cat foo
scratch/main> view 1
2022-07-11 18:10:04 +03:00
```
2024-06-26 21:03:22 +03:00
Finding within a namespace
2024-01-08 23:17:35 +03:00
```ucm
scratch/main> find bar
2024-08-01 02:54:10 +03:00
scratch/other> debug.find.global bar
scratch/main> find-in somewhere bar
2022-07-11 18:10:04 +03:00
```
```ucm:error
scratch/main> find baz
2022-07-11 18:10:04 +03:00
```