You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 6, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/wsh.mdx
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,24 +36,32 @@ This will open up codeedit for the specified file. This is useful for quickly e
36
36
You can view the metadata of any block by running:
37
37
38
38
```
39
-
wsh getmeta [blockid]
39
+
wsh getmeta -b [blockid]
40
40
```
41
41
42
42
This is especially useful for preview and web blocks as you can see the file or url that they are pointing to and use that in your CLI scripts.
43
43
44
+
blockid format:
45
+
46
+
* this -- the current block (this is also the default)
47
+
* tab -- the id of the current tab
48
+
* d6ff4966-231a-4074-b78a-20acc7226b41 -- a full blockid is a UUID
49
+
* a67f55a3 -- blockids may be truncated to the first 8 characters
50
+
* 5 -- if a number less than 100 is given, it is a block number. blocks are numbered sequentially in the current tab from the top-left to bottom-right. holding Ctrl:Shift will show a block number overlay.
51
+
44
52
---
45
53
46
54
## setmeta
47
55
48
56
You can update any metadata key value pair for blocks (and tabs) by using the setmeta command:
You can get block and tab ids by right clicking on the appropriate block and selecting "Copy BlockId". When you
64
+
You can get block and tab ids by right clicking on the appropriate block and selecting "Copy BlockId" (or use the block number via Ctrl:Shift). When you
57
65
update the metadata for a preview or web block you'll see the changes reflected instantly in the block.
58
66
59
67
Other useful metadata values to override block titles, icons, colors, themes, etc.
@@ -63,7 +71,7 @@ Other useful metadata values to override block titles, icons, colors, themes, et
0 commit comments