Terminal support for bin/org-capture
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### I confirm that...
- [X] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.
- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.
- [X] The issue can be reproduced on the **latest** available commit of Doom.
- [X] The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. *(Unstable versions end in .50, .60, or .9x)*
### Expected behavior
In a terminal only environment (e.g. over ssh) calling `org-capture` produces:
```
*ERROR*: Display :0 can’t be opened
```
Does `bin/org-capture` only support GUI emacs?
I can see from the following:
https://github.com/doomemacs/doomemacs/blob/183ab38926aa1506203ea9ea64f631d598f90b4a/modules/lang/org/autoload/org-capture.el#L18-L24
That we only set GUI frame parameters and I suspect “TODO” might be the TUI frame parameter support.
Playing around with this a list, I haven’t been able find a configuration which works in the terminal.
E.g have tried variations on
```
(setq +org-capture-frame-parameters
'((name . "doom-capture")
(width . 70)
(height . 25)
(transient . t)
(terminal . (make-terminal-frame))
nil))
```
### Current behavior
In a terminal only environment (e.g. over ssh) calling `org-capture` produces:
```
*ERROR*: Display :0 can’t be opened
```
### Steps to reproduce
1. In an environment without a display call `org-capture` from the CLI. i.e.
```
org-capture -k n "To the mind that is still, the whole universe surrenders.
```
2. Get the error.
```
*ERROR*: Display :0 can’t be opened
```
### System Information
https://pastebin.com/Cd0Giqjb
Contributor guide
Assessment
This issue has not been assessed yet.