mirror of
https://github.com/unisonweb/unison.git
synced 2024-11-04 01:03:36 +03:00
0031542faf
This is for consistency with the `cmark` style. Now the blocks we still pretty-print ourselves will match the bulk of them that `cmark` produces.
1.3 KiB
1.3 KiB
foo = 1
lib.foo = 2
lib.bar = 3
cat.foo = 4
cat.lib.foo = 5
cat.lib.bar = 6
somewhere.bar = 7
scratch/main> find foo
1. cat.foo : Nat
2. foo : Nat
scratch/main> view 1
cat.foo : Nat
cat.foo = 4
scratch/main> find.all foo
1. cat.foo : Nat
2. cat.lib.foo : Nat
3. lib.foo : Nat
4. foo : Nat
scratch/main> view 1
cat.foo : Nat
cat.foo = 4
scratch/main> find-in cat foo
1. foo : Nat
scratch/main> view 1
cat.foo : Nat
cat.foo = 4
scratch/main> find-in.all cat foo
1. lib.foo : Nat
2. foo : Nat
scratch/main> view 1
cat.lib.foo : Nat
cat.lib.foo = 5
Finding within a namespace
scratch/main> find bar
1. somewhere.bar : Nat
-- Shows UUIDs
-- scratch/main> find.global bar
scratch/main> find-in somewhere bar
1. bar : Nat
scratch/main> find baz
☝️
I couldn't find matches in this namespace, searching in
'lib'...
😶
No results. Check your spelling, or try using tab completion
to supply command arguments.
`find.global` can be used to search outside the current
namespace.
scratch/main> find.global notHere
😶
No results. Check your spelling, or try using tab completion
to supply command arguments.