From 8309e1d2a3ea2d16c4e2615c43ce5286aacc226b Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Mon, 2 Feb 2026 00:27:45 +0000 Subject: [PATCH] Update cheatsheets --- tldr/fd | 4 ++-- tldr/helix | 36 +++--------------------------------- tldr/hx | 36 +++++++++++++++++++++++++++++++++--- tldr/pip-install | 12 ++++++++++-- tldr/pipx | 4 ++++ tldr/tio | 34 ++++++++++++++++++++++++++++++++++ 6 files changed, 86 insertions(+), 40 deletions(-) create mode 100644 tldr/tio diff --git a/tldr/fd b/tldr/fd index 01a7c021..bb96ab79 100644 --- a/tldr/fd +++ b/tldr/fd @@ -29,9 +29,9 @@ source: https://github.com/tldr-pages/tldr.git `fd {{[-H|--hidden]}} {{[-I|--no-ignore]}} "{{string|regex}}"` -- Exclude files that match a specific `regex`: +- Exclude files that match a specific glob pattern: -`fd {{string}} {{[-E|--exclude]}} {{regex}}` +`fd {{string}} {{[-E|--exclude]}} {{glob}}` - Execute a command on each search result returned: diff --git a/tldr/helix b/tldr/helix index 934aa976..a32b39e4 100644 --- a/tldr/helix +++ b/tldr/helix @@ -5,38 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # helix -> Helix, A post-modern text editor, provides several modes for different kinds of text manipulation. -> Pressing `` enters insert mode. `` enters normal mode, which enables the use of Helix commands. -> More information: . +> This command is an alias of `hx`. -- Open a file: +- View documentation for the original command: -`helix {{path/to/file}}` - -- Open files and show them one next each other: - -`helix --vsplit {{path/to/file1 path/to/file2}}` - -- Show the tutorial to learn Helix (or access it within Helix by pressing `` and typing `<:>tutor`): - -`helix --tutor` - -- Change the Helix theme: - -`<:>theme {{theme_name}}` - -- Save and Quit: - -`<:>wq` - -- Force-quit without saving: - -`<:>q!` - -- Undo the last operation: - -`` - -- Search for a pattern in the file (press ``/`` to go to next/previous match): - -`{{search_pattern}}` +`tldr hx` diff --git a/tldr/hx b/tldr/hx index 71790ecf..5a5aed07 100644 --- a/tldr/hx +++ b/tldr/hx @@ -5,8 +5,38 @@ source: https://github.com/tldr-pages/tldr.git --- # hx -> This command is an alias of `helix`. +> Helix, a post-modern text editor, provides several modes for different kinds of text manipulation. +> Pressing `` enters insert mode. `` enters normal mode, which enables the use of Helix commands. +> More information: . -- View documentation for the original command: +- Open a file: -`tldr helix` +`hx {{path/to/file}}` + +- Open files and show them one next each other: + +`hx --vsplit {{path/to/file1 path/to/file2 ...}}` + +- Show the tutorial to learn Helix (or access it within Helix by pressing `` and typing `<:>tutor`): + +`hx --tutor` + +- Change the Helix theme: + +`<:>theme {{theme_name}}` + +- Save and Quit: + +`<:>wq` + +- Force-quit without saving: + +`<:>q!` + +- Undo the last operation: + +`` + +- Search for a pattern in the file (press ``/`` to go to next/previous match): + +`{{search_pattern}}` diff --git a/tldr/pip-install b/tldr/pip-install index 5c81f81a..cc0133b3 100644 --- a/tldr/pip-install +++ b/tldr/pip-install @@ -24,9 +24,17 @@ source: https://github.com/tldr-pages/tldr.git `pip install {{[-r|--requirement]}} {{path/to/requirements.txt}}` -- Install packages from a URL or local file archive (e.g. `.tar.gz`, `.whl`): +- Install a package from a local archive or directory: -`pip install {{[-f|--find-links]}} {{url|path/to/file}}` +`pip install {{path/to/file.whl|path/to/file.tar.gz|path/to/directory}}` + +- Install a package from a Git repository: + +`pip install git+https://{{example.com}}/{{user}}/{{repository}}.git` + +- Install a package from an alternative source (URL or directory) instead of PyPI: + +`pip install {{[-f|--find-links]}} {{url|path/to/directory}} {{package}}` - Install the local package in the current directory in develop (editable) mode: diff --git a/tldr/pipx b/tldr/pipx index 334e7d7e..cf982121 100644 --- a/tldr/pipx +++ b/tldr/pipx @@ -16,6 +16,10 @@ source: https://github.com/tldr-pages/tldr.git `pipx install {{package}}` +- Uninstall a package: + +`pipx uninstall {{package}}` + - List installed packages: `pipx list` diff --git a/tldr/tio b/tldr/tio new file mode 100644 index 00000000..afb19940 --- /dev/null +++ b/tldr/tio @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# tio + +> Monitor and interact with serial ports. +> See also: `picocom`, `cu`, `minicom`. +> More information: . + +- Open a serial port with default settings: + +`tio {{/dev/ttyUSB0}}` + +- Open a serial port with a specific baud rate: + +`tio {{[-b|--baudrate]}} {{9600}} {{/dev/ttyUSB0}}` + +- Open a serial port and log output to a file: + +`tio {{[-L|--log]}} --log-file {{log_file}} {{/dev/ttyUSB0}}` + +- Open a serial port and enable hexadecimal output: + +`tio --output-mode hex {{/dev/ttyUSB0}}` + +- List available serial ports: + +`tio {{[-l|--list]}}` + +- Exit `tio` session: + +``