Commit Graph

19 Commits

Author SHA1 Message Date
Henrik Lissner
2f39d3fced fix(cli): "Unknown terminal type" error on bin/org-capture
Fix: #5438
2021-11-24 22:03:21 +01:00
Henrik Lissner
528657a426 bin/org-capture: fix hanging
The script's stdin check was too simplistic and would block forever
waiting for input. From now on, to pipe to the script, pass it a dash.
2021-05-15 14:09:08 -04:00
pancho horrillo
3861225f0b Fix 'too many arguments' error on org-capture
org-capture foo bar baz

will fail with:

org/capture: line 33: [: too many arguments

Adding quotes to the expansion of $str will ensure that test -z has
only one argument.
2021-03-08 10:42:06 +01:00
Eric Drechsel
269dab615c org-capture: text from args, else stdin
old behavior was to use stdin in non-interactive
This prevented binding eg in qutebrowser
2021-03-07 00:48:32 -08:00
Henrik Lissner
1274de3d34 Minor reformatting & refactors across the board 2021-02-25 13:59:43 -05:00
Diego Zamboni
394c9b5a70 Fix string comparison in TERM check
Script was using -eq, which is a numeric comparison, and was producing
an "integer expression expected" error. Changed to =, the string
comparison operator.
2020-08-24 14:42:45 +02:00
Henrik Lissner
10d25be4ed
bin/org-capture: TERM=xterm-256color in alacritty 2020-08-21 15:49:36 -04:00
Henrik Lissner
cdaa55b4db
Rename org-capture frame to doom-capture
To reduce likelihood of conflicts.
2020-03-01 01:39:14 -05:00
Michael Sanders
413171cfc9
bin/org-capture: Suppress output for initial emacsclient call 2020-02-29 17:57:44 -08:00
Rafael Accácio Nogueira
b22f7005f8 use OPTARG to get key 2020-02-10 11:36:55 +01:00
chrunchyjesus
5a380e9db2
fix shebang for doctor, org-capture and -tangle 2019-06-08 07:27:36 +02:00
Misaka Mikoto
cbe11ae926 bin/org-capture POSIX compliance 2019-06-03 21:21:11 +10:00
Henrik Lissner
36919fedda
bin/org-capture: refactor & use -k switch 2019-03-29 23:49:47 -04:00
Henrik Lissner
6c8df7c6bb
bin/org-capture: reformat & improve daemon cleanup
Ensures the temporary daemon is killed after org-capture is finished.
2018-06-24 16:31:14 +02:00
Henrik Lissner
69dc25ae4c
lang/org: fix external org-capture workflow
+ Fix frame-spawning when calling bin/org-capture
+ Integrate counsel-org-capture into bin/org-capture workflow
+ Ensure frame is closed if counsel-org-capture is cancelled
+ Ensure org-capture buffer closes the associated frame
+ Add transient frame property for org-capture frames

If you are using a tiling window manager, you'll need to add a rule for
a window named "org-capture" in order to make a floating window.
2018-02-07 01:08:33 -05:00
Henrik Lissner
898d1f225a
bin/org-capture: improve stability + add stdin support 2017-10-02 20:02:27 +02:00
Henrik Lissner
d2d4166b42
Move lang/org => org/*
Since lang/org has grown (and is expected to grow much, much more), it
has been given its own module category.

Concerns #129, #138
2017-07-05 12:26:08 +02:00
Henrik Lissner
b00d5edd26 Correct +org/capture function name 2017-05-28 12:23:05 +02:00
Henrik Lissner
05b01a431d Add bin/org-capture script 2017-04-22 01:49:44 -04:00