emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-writers-room sort of works! just in time for NaNoWriMo
@ 2013-11-01  4:00 Matt Price
  2013-11-01  6:07 ` Ivan Andrus
  2013-11-01  6:08 ` Alan L Tyree
  0 siblings, 2 replies; 11+ messages in thread
From: Matt Price @ 2013-11-01  4:00 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 2898 bytes --]

I have just pushed a more-or-less-working version of my "Org Writer's
Room" mode to github:

https://github.com/titaniumbones/org-writers-room

It's a very simple set of mostly-trivial minor modes that creates a
Scrivener-like writing environment for org users.  put
org-writers-room.el in your load path, load or require it, and then,
in an org-mode file, type M-x org-writers-room.  This will close all
but one of your existing windows, split the remaining window into 3
columns, and populate them as follows:

- left-hand column contains your unnarrowed original org file.
Ideally it should be org-global-cycle'd to "children" but I can't see
how to instruct org-cycle or org-global-cycle to set visibility to a
particular level.  (I would also like to have the entire "PROPERTIES"
drawer and ALL NON-HEADING CONTENTS of the heading hidden at all
times, but I can't figure that out either).
- wide center column contains an indirect buffer narrowed to the
subtree at point in the main buffer.
- right-hand column contains a second indirect buffer narrowed to the
properties drawer of the subtree at point.

In the left-hand column, press C-c C-x b or just RET on a heading to
"activate" it and place its contents in the other two columns.

It could definitely be a lot better but it's not so terrible!  It
allows you to have an overview of the project as a whole, a clean view
of the section you're writing at the moment, and a look over at the
metadata -- the "back of the index card" from Scrivener -- to remind
you of what you're trying to do in the setion you're currently
writing.

I would really like to make the metadata part more robust, with maybe
some functions that let you edit the property values without touching
the property names, and perhaps some fontlock trickery to make it look
prettier.  Siilarly, I'd like to do a bit more with the guide and evne
with the main section.  Eventually, I'd also like to make it
compatible with zotero-plain so I can start to use citations properly
in org-mode instead of inserting them post-facto in libreoffice
(ugh!).    But for now I'm pleased it works at all.

 I would love it if people would try it out.  It should be much more
stable than the last, awful version I posted some months ago.  The
code is very simple and mostly just

(1) rewrites the org functions for dealing with indirect buffers, so
that the indirect buffers don't need to be clones of the parent buffer
(2) changes some keybindings
(3) sets up the stable window configuration described above.

I would really love it if some other people would try it out, and (oh
please!) suggest/implement improvements.  I am well aware of my
terrible coding limitations.

Thank you,
matt

PS, the readme on github is a little out of date, but the code itself
is mostly documented so I hope that helps.  Though there's no general
documentation at the top of the file -- oops, sorry.

[-- Attachment #2: org-writers-room.png --]
[-- Type: image/png, Size: 123279 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-11-05  9:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-01  4:00 org-writers-room sort of works! just in time for NaNoWriMo Matt Price
2013-11-01  6:07 ` Ivan Andrus
2013-11-01  6:08 ` Alan L Tyree
2013-11-01  9:07   ` Ian Barton
2013-11-01 14:13     ` Matt Price
2013-11-01 14:12   ` Matt Price
2013-11-01 14:45     ` Thorsten Jolitz
2013-11-01 18:28     ` Alan L Tyree
2013-11-03  3:38       ` Matt Price
2013-11-04  1:10         ` Thorsten Jolitz
     [not found]           ` <CAN_Dec-+rQSqcDcjpFo9MsfuvK3Fc0bRDrMe_NR232XtcguUXg@mail.gmail.com>
     [not found]             ` <87a9hkjcli.fsf@gmail.com>
2013-11-05  9:54               ` Matt Price

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).