-
-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] migrate guides to visidata/guides/*.md (#2296)
Co-authored-by: Saul Pwanson <code@saul.pw>
- Loading branch information
1 parent
41bbbcc
commit b8a8b5b
Showing
13 changed files
with
199 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Some special features for JSON | ||
|
||
## Working with nested data | ||
|
||
VisiData uses these conventions to display nested data: | ||
|
||
- {{2}} indicates a nested object with 2 keys | ||
- [3] indicates a nested array with 3 elements | ||
|
||
[:note_type]Expanding[/] unpacks nested data column-wise, often useful for nested objects: | ||
|
||
- {help.commands.expand-col} | ||
- {help.commands.expand-col-depth} | ||
- {help.commands.expand-cols} | ||
- {help.commands.expand-cols-depth} | ||
|
||
To revert earlier `expand-` operations: | ||
|
||
- {help.commands.contract-col} | ||
- {help.commands.contract-col-depth} | ||
- {help.commands.contract-cols} | ||
- {help.commands.contract-cols-depth} | ||
|
||
[:note_type]Unfurling[/] unpacks nested data row-wise, often useful for nested arrays: | ||
|
||
- {help.commands.unfurl-col} | ||
|
||
Note that `unfurl-col` creates a new sheet with `_unfurled` appended to the name. There is no command to revert an unfurl; instead, quit the unfurled sheet. | ||
|
||
For particularly deep or complex nested data, it can be helpful to open an individual cell as a new sheet: | ||
|
||
- {help.commands.open-cell} | ||
|
||
## Options to control JSON save behavior | ||
|
||
- {help.options.json_indent} | ||
- {help.options.json_sort_keys} | ||
- {help.options.json_ensure_ascii} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Macros | ||
Macros allow you to bind a command sequence to a keystroke or longname, to replay when that keystroke is pressed or the command is executed by longname. | ||
|
||
The basic usage is: | ||
1. {help.commands.macro_record}. | ||
2. Execute a series of commands. | ||
3. `m` again to complete the recording, and prompt for the keystroke or longname to bind it to. | ||
|
||
The macro will then be executed everytime the provided keystroke or longname are used. Note: the Alt+keys and the function keys are left unbound; overriding other keys may conflict with existing bindings, now or in the future. | ||
|
||
Executing a macro will the series of commands starting on the current row and column on the current sheet. | ||
|
||
# The Macros Sheet | ||
|
||
- {help.commands.macro_sheet} | ||
|
||
- `d` (`delete-row`) to mark macros for deletion | ||
- {help.commands.commit_sheet} | ||
- `Enter` (`open-row`) to open the macro in the current row, and view the series of commands composing it''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Selecting and filtering | ||
|
||
Some commands operate only on "selected rows". For instance, a common command to filter is {help.commands.dup_selected}. | ||
|
||
Many g-prefixed commands are like this. For example, use {help.commands.edit_cell}, but use {help.commands.setcol_input}. Search for "selected rows" in the [:onclick help-commands-all]commands list[/] or the [:onclick sysopen-help]manpage[/] for a full list. | ||
|
||
Rows on the **Frequency Table** or **Pivot Table** reference a group of rows from the source sheet. Selecting a row on those sheets also selects the referenced rows on the underlying source sheet. | ||
|
||
Select and unselect rows with these commands: | ||
|
||
## One row at a time | ||
|
||
- {help.commands.select_row} | ||
- {help.commands.unselect_row} | ||
- {help.commands.stoggle_row} | ||
|
||
## All rows at the same time | ||
|
||
- {help.commands.select_rows} | ||
- {help.commands.unselect_rows} | ||
- {help.commands.stoggle_rows} | ||
|
||
## By matching patterns | ||
|
||
- {help.commands.select_col_regex} | ||
- {help.commands.unselect_col_regex} | ||
- {help.commands.select_cols_regex} | ||
- {help.commands.unselect_cols_regex} | ||
|
||
- {help.commands.select_equal_cell} | ||
- {help.commands.select_equal_row} | ||
|
||
## Select by Python expression | ||
|
||
Python expressions can use a column value by the column name, if the | ||
column name is a valid Python identifier (with only letters, digits, and underscores). | ||
|
||
- {help.commands.select_expr} | ||
- {help.commands.unselect_expr} | ||
|
||
## Options | ||
|
||
- {help.options.bulk_select_clear} | ||
- {help.options.some_selected_rows} |
Oops, something went wrong.