diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-26 00:40:40 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-26 00:40:40 +0200 |
| commit | 43b0708769eb61392050045b881f8e6ba39c5b66 (patch) | |
| tree | 3939579a13b8325325d5ebb8e05324a41ed78a6d /content/posts/2023-05-22-crafting-stories-in-zed-editor.md | |
| parent | 49e7e7d555a6cd9810d81561fa3e98e3d64502be (diff) | |
| download | mitjafelicijan.com-43b0708769eb61392050045b881f8e6ba39c5b66.tar.gz | |
Massive update to posts, archetypes
Added a archetypes for creating notes and posts so it auto-populates
fields.
Fixed existing posts so they align with the rule of 80 columns now.
Diffstat (limited to 'content/posts/2023-05-22-crafting-stories-in-zed-editor.md')
| -rw-r--r-- | content/posts/2023-05-22-crafting-stories-in-zed-editor.md | 61 |
1 files changed, 45 insertions, 16 deletions
diff --git a/content/posts/2023-05-22-crafting-stories-in-zed-editor.md b/content/posts/2023-05-22-crafting-stories-in-zed-editor.md index 9c04b1c..f5240da 100644 --- a/content/posts/2023-05-22-crafting-stories-in-zed-editor.md +++ b/content/posts/2023-05-22-crafting-stories-in-zed-editor.md | |||
| @@ -1,25 +1,41 @@ | |||
| 1 | --- | 1 | --- |
| 2 | title: From General Zod to Superman - Crafting Stories in Zed Editor | 2 | title: From General Zod to Superman - Crafting Stories in Zed Editor |
| 3 | url: crafting-stories-in-zed-editor.html | 3 | url: crafting-stories-in-zed-editor.html |
| 4 | date: 2023-05-22 | 4 | date: 2023-05-22T12:00:00+02:00 |
| 5 | draft: false | 5 | draft: false |
| 6 | --- | 6 | --- |
| 7 | 7 | ||
| 8 | Pretentious title! Good start! I have nothing to add to this discussion. I just like this editor and wanted to write something here that will remind me to use it again in a while when/if it becomes available for Linux. | 8 | Pretentious title! Good start! I have nothing to add to this discussion. I just |
| 9 | like this editor and wanted to write something here that will remind me to | ||
| 10 | use it again in a while when/if it becomes available for Linux. | ||
| 9 | 11 | ||
| 10 | **TLDR:** I think this code editor is very cool and has a massive potential. I hope they don’t mess up with adding a plugin ecosystem to it! | 12 | **TLDR:** I think this code editor is very cool and has a massive potential. |
| 13 | I hope they don’t mess up with adding a plugin ecosystem to it! | ||
| 11 | 14 | ||
| 12 | Out of morbid curiosity, I started using the [Zed editor](https://zed.dev/) on my Mac. Zed is a high-performance, multiplayer code editor developed by the creators of Atom and Tree-sitter. Written in Rust so it has to be blazingly fast! 😊 It's a joke, calm down. | 15 | Out of morbid curiosity, I started using the [Zed editor](https://zed.dev/) |
| 16 | on my Mac. Zed is a high-performance, multiplayer code editor developed by | ||
| 17 | the creators of Atom and Tree-sitter. Written in Rust so it has to be | ||
| 18 | blazingly fast! 😊 It's a joke, calm down. | ||
| 13 | 19 | ||
| 14 | Over the past year, I have switched between [Helix editor](https://helix-editor.com/) and [VS Code](https://code.visualstudio.com/), but for the last couple of months, I have been using Helix exclusively. | 20 | Over the past year, I have switched between [Helix editor](https://helix-editor.com/) |
| 21 | and [VS Code](https://code.visualstudio.com/), but for the last couple of | ||
| 22 | months, I have been using Helix exclusively. | ||
| 15 | 23 | ||
| 16 | I've been genuinely impressed by Zed. When you open a file, it automatically detects its type and downloads the corresponding [LSP (language server)](https://en.wikipedia.org/wiki/Language_Server_Protocol). The list of supported languages is not extensive, but it's still impressive. It's a great example of how to create a product that stays out of your way. | 24 | I've been genuinely impressed by Zed. When you open a file, it automatically |
| 25 | detects its type and downloads the corresponding [LSP (language server)](https://en.wikipedia.org/wiki/Language_Server_Protocol). | ||
| 26 | The list of supported languages is not extensive, but it's still impressive. | ||
| 27 | It's a great example of how to create a product that stays out of your way. | ||
| 17 | 28 | ||
| 18 |  | 29 |  |
| 19 | 30 | ||
| 20 | For C development it downloaded [clangd](https://clangd.llvm.org/) and setting up missing dependencies in code was rather easy. For this project I use [SDL2](https://www.libsdl.org/) for rendering terminal emulator. It’s a hobby project, don’t worry about it. | 31 | For C development it downloaded [clangd](https://clangd.llvm.org/) and setting |
| 32 | up missing dependencies in code was rather easy. For this project I use | ||
| 33 | [SDL2](https://www.libsdl.org/) for rendering terminal emulator. It’s a | ||
| 34 | hobby project, don’t worry about it. | ||
| 21 | 35 | ||
| 22 | If you are going to give this a try and you are using C, I suggest checking two files in the root of your project folder. If you don't have them, create them. | 36 | If you are going to give this a try and you are using C, I suggest checking |
| 37 | two files in the root of your project folder. If you don't have them, | ||
| 38 | create them. | ||
| 23 | 39 | ||
| 24 | **compile_flags.txt** | 40 | **compile_flags.txt** |
| 25 | 41 | ||
| @@ -28,7 +44,10 @@ If you are going to give this a try and you are using C, I suggest checking two | |||
| 28 | -I/opt/homebrew/include/SDL2 | 44 | -I/opt/homebrew/include/SDL2 |
| 29 | ``` | 45 | ``` |
| 30 | 46 | ||
| 31 | Easy way of checking what the appropriate includes for a specific library is to use `pkg-config` and in my case `pkg-config SDL2 --cflags-only-I`. But this is nothing new to C/C++ devs. Just a noter for people who are using Visual Studio. | 47 | Easy way of checking what the appropriate includes for a specific library is |
| 48 | to use `pkg-config` and in my case `pkg-config SDL2 --cflags-only-I`. But this | ||
| 49 | is nothing new to C/C++ devs. Just a noter for people who are using Visual | ||
| 50 | Studio. | ||
| 32 | 51 | ||
| 33 | **.clang-format** | 52 | **.clang-format** |
| 34 | 53 | ||
| @@ -39,21 +58,31 @@ BasedOnStyle: Mozilla | |||
| 39 | 58 | ||
| 40 | I prefer Mozilla coding style for C so you can set that up. | 59 | I prefer Mozilla coding style for C so you can set that up. |
| 41 | 60 | ||
| 42 | They really have something special here. Although there is no version available for Linux yet, I will stick to Helix. This impressive piece of engineering is, above all, an amazing example of craftsmanship. | 61 | They really have something special here. Although there is no version available |
| 62 | for Linux yet, I will stick to Helix. This impressive piece of engineering is, | ||
| 63 | above all, an amazing example of craftsmanship. | ||
| 43 | 64 | ||
| 44 | They have a bunch of amazing integrated functionalities like live desktop sharing, code sharing in a live coding session. There is a lot of pretentious marketing speak there but the product is still amazing! | 65 | They have a bunch of amazing integrated functionalities like live desktop |
| 66 | sharing, code sharing in a live coding session. There is a lot of pretentious | ||
| 67 | marketing speak there but the product is still amazing! | ||
| 45 | 68 | ||
| 46 | For me the speed and the simplicity of the product was the most impressive thing. You get that: it just works feeling. A rare thing in 2023. | 69 | For me the speed and the simplicity of the product was the most impressive |
| 70 | thing. You get that: it just works feeling. A rare thing in 2023. | ||
| 47 | 71 | ||
| 48 |  | 72 |  |
| 49 | 73 | ||
| 50 | 74 | They also managed to add [Github Copilot](https://github.com/features/copilot) | |
| 51 | They also managed to add [Github Copilot](https://github.com/features/copilot) in a non obtrusive way. To me, everything feels very intentional and specifically selected. It's minimal yet maximally effective. | 75 | in a non obtrusive way. To me, everything feels very intentional and |
| 76 | specifically selected. It's minimal yet maximally effective. | ||
| 52 | 77 | ||
| 53 | <video src="https://zed.dev/img/post/copilot/copilot-demo.webm" autoplay loop></video> | 78 | <video src="https://zed.dev/img/post/copilot/copilot-demo.webm" autoplay loop></video> |
| 54 | 79 | ||
| 55 | It is a perfect balance between VS Code, Jetbrains IDE’s and something like VIM or Helix. | 80 | It is a perfect balance between VS Code, Jetbrains IDE’s and something like |
| 81 | VIM or Helix. | ||
| 56 | 82 | ||
| 57 | I just hope they **DON’T** add plugin support and keep it like it is. They as a vendor should add stuff to it with great deliberation and thought. And this way the product will stay fast and focused. That’s my two cents. | 83 | I just hope they **DON’T** add plugin support and keep it like it is. They as a |
| 84 | vendor should add stuff to it with great deliberation and thought. And this | ||
| 85 | way the product will stay fast and focused. That’s my two cents. | ||
| 58 | 86 | ||
| 59 | Amazing job! | 87 | Amazing job! |
| 88 | |||
