|
13 | 13 | - [When are messages marked as having been read?](#when-are-messages-marked-as-having-been-read)
|
14 | 14 | - [How do I access multiple servers?](#how-do-i-access-multiple-servers)
|
15 | 15 | - [What is autocomplete? Why is it useful?](#what-is-autocomplete-why-is-it-useful)
|
| 16 | + - [Can I compose messages in another editor?](#can-i-compose-messages-in-another-editor) |
16 | 17 | - Something is not working!
|
17 | 18 | - [Colors appear mismatched, don't change with theme, or look strange](#colors-appear-mismatched-dont-change-with-theme-or-look-strange)
|
18 | 19 | - [Symbols look different to in the provided screenshots, or just look incorrect](#symbols-look-different-to-in-the-provided-screenshots-or-just-look-incorrect)
|
@@ -372,6 +373,35 @@ through autocomplete depend upon the context automatically.
|
372 | 373 | **NOTE:** If a direct message recipient's name contains comma(s) (`,`), they
|
373 | 374 | are currently treated as comma-separated recipients.
|
374 | 375 |
|
| 376 | +## Can I compose messages in another editor? |
| 377 | + |
| 378 | +In the main branch of zulip-terminal, you can now use an external editor to |
| 379 | +compose your message using `ctrl o` shortcut. If `ZULIP_EDITOR_COMMAND` or |
| 380 | +`EDITOR` environment variable is set, this command or program would be used |
| 381 | +to open the message by appending a temporary file filepath of the current message. |
| 382 | + |
| 383 | +It will work directly for most terminal editors with only the program name `vim`, |
| 384 | +`nano`, `helix`, `kakoune`, `nvim`... |
| 385 | + |
| 386 | +It can also be used for desktop editor with some constraint which needs to be |
| 387 | +address using `ZULIP_EDITOR_COMMAND` custom command. The program must not fork |
| 388 | +or detach from the running terminal and should open in a new window, some |
| 389 | +examples: |
| 390 | + |
| 391 | +- [lapce](https://github.com/lapce/lapce) with `lapce -n -w` |
| 392 | +- [sublime-text](https://www.sublimetext.com/) with `subl -n -w` |
| 393 | +- [marker](https://github.com/fabiocolacio/Marker) with `marker` |
| 394 | +- [vim](https://github.com/vim/vim) with `vim -g -f` or `gvim -f` |
| 395 | +- [vscode](https://github.com/microsoft/vscode) with `code -n -w` |
| 396 | + |
| 397 | +When the external editor process ends (closing the window or quitting terminal |
| 398 | +editor), the composing box will be updated with the new message content from |
| 399 | +the temporary file. |
| 400 | + |
| 401 | +**NOTE:** Backslashing white space (`\ `) is needed when using an executable |
| 402 | +containing them, for example for Sublime Text on macOS can be configure with |
| 403 | +`/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl`. |
| 404 | + |
375 | 405 | ## Colors appear mismatched, don't change with theme, or look strange
|
376 | 406 |
|
377 | 407 | Some terminal emulators support specifying custom colors, or custom color
|
|
0 commit comments