unison/unison-src/transcripts/find-command.output.md
Greg Pfeil 0031542faf
Add a space before code block info strings
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.
2024-07-10 13:56:07 -06:00

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.