From 3c72bec239c8e2911b2f3fa549808cc545417c2a Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Mon, 14 Jul 2025 00:22:33 +0000 Subject: [PATCH] Update cheatsheets --- tldr/zed | 29 +++++++++++++++++++++++++++++ tldr/zeditor | 12 ++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 tldr/zed create mode 100644 tldr/zeditor diff --git a/tldr/zed b/tldr/zed new file mode 100644 index 00000000..d6436411 --- /dev/null +++ b/tldr/zed @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# zed + +> Text editor designed to be fast, efficient and convenient. +> More information: . + +- Open specific paths in Zed: + +`zed {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- Open a path in foreground and display logs: + +`zed {{path/to/project}} --foreground` + +- Open a path in new window: + +`zed {{path/to/project}} {{[-n|--new]}}` + +- Open a file at the given line number and column: + +`zed {{path/to/file}}:{{line_number}}:{{column_number}}` + +- Open a diff tab in Zed for two versions of a file: + +`zed --diff {{path/to/old_file}} {{path/to/new_file}}` diff --git a/tldr/zeditor b/tldr/zeditor new file mode 100644 index 00000000..f4f0a0db --- /dev/null +++ b/tldr/zeditor @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# zeditor + +> This command is an alias of `zed`. + +- View documentation for the original command: + +`tldr zed`