* Any easy way to use multiple indirect buffers based on subtrees?
@ 2018-09-04 17:26 Cody Goodman
2018-09-05 0:11 ` Kyle Meyer
2018-09-13 10:02 ` Adam Porter
0 siblings, 2 replies; 3+ messages in thread
From: Cody Goodman @ 2018-09-04 17:26 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 339 bytes --]
I would like to be able to create N indirect buffers per subtree because I
like working on each subtree in it's own eyebrowse workspace. Does anyone
already do this? I didn't see config options to achieve what I wanted, so
wanted to ask here before I look at the indirect buffer implementation to
figure out how to do this.
Thanks,
Cody
[-- Attachment #2: Type: text/html, Size: 432 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Any easy way to use multiple indirect buffers based on subtrees?
2018-09-04 17:26 Any easy way to use multiple indirect buffers based on subtrees? Cody Goodman
@ 2018-09-05 0:11 ` Kyle Meyer
2018-09-13 10:02 ` Adam Porter
1 sibling, 0 replies; 3+ messages in thread
From: Kyle Meyer @ 2018-09-05 0:11 UTC (permalink / raw)
To: Cody Goodman, emacs-orgmode
Cody Goodman <codygman.consulting@gmail.com> writes:
> I would like to be able to create N indirect buffers per subtree because I
> like working on each subtree in it's own eyebrowse workspace. Does anyone
> already do this? I didn't see config options to achieve what I wanted, so
> wanted to ask here before I look at the indirect buffer implementation to
> figure out how to do this.
I'm not sure I'm reading your question correctly, but does a C-u before
org-tree-to-indirect-buffer do what you want? From
org-tree-to-indirect-buffer's docstring:
However, when you call the command with a ‘C-u’ prefix, or when
‘org-indirect-buffer-display’ is ‘new-frame’, the last buffer is
kept so that you can work with several indirect buffers at the same
time.
I prefer to reverse the meaning of the prefix argument, so I define the
following wrapper in my config:
--8<---------------cut here---------------start------------->8---
(defun km/org-tree-to-indirect-buffer (&optional arg)
"Run `org-tree-to-indirect-buffer', keeping previous buffer.
By default, `org-tree-to-indirect-buffer' deletes the previous
indirect buffer when making a new one to avoid accumulating
buffers, which can be overriden by a C-u prefix. Reverse this
behavior so that the prefix must be given in order to delete the
previous indirect buffer. If the argument is a number, which has
a different meaning, it is left untouched."
(interactive "P")
(unless (numberp arg)
(setq arg (not arg)))
(org-tree-to-indirect-buffer arg))
--8<---------------cut here---------------end--------------->8---
--
Kyle
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Any easy way to use multiple indirect buffers based on subtrees?
2018-09-04 17:26 Any easy way to use multiple indirect buffers based on subtrees? Cody Goodman
2018-09-05 0:11 ` Kyle Meyer
@ 2018-09-13 10:02 ` Adam Porter
1 sibling, 0 replies; 3+ messages in thread
From: Adam Porter @ 2018-09-13 10:02 UTC (permalink / raw)
To: emacs-orgmode
In addition to Kyle's suggestion, you may find Helm useful, as commands
like helm-org-in-buffer-headings have an "Open in indirect buffer"
action, which makes it easy to open subtrees in indirect buffers.
helm-org-rifle can also do this.
If there are certain subtrees you often work with together, you could
write a function to open certain entries by UUID in indirect buffers,
then arrange the buffers into frames/windows accordingly.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-09-13 10:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-04 17:26 Any easy way to use multiple indirect buffers based on subtrees? Cody Goodman
2018-09-05 0:11 ` Kyle Meyer
2018-09-13 10:02 ` Adam Porter
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).