emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: org-writers-room sort of works! just in time for NaNoWriMo
Date: Fri, 1 Nov 2013 00:00:16 -0400	[thread overview]
Message-ID: <CAN_Dec99Ec5KzMQ7v=WMs=1RRTOXbzteaVtKNP7drD2tFzGdOA@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2013-11-01  4:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-01  4:00 Matt Price [this message]
2013-11-01  6:07 ` org-writers-room sort of works! just in time for NaNoWriMo 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN_Dec99Ec5KzMQ7v=WMs=1RRTOXbzteaVtKNP7drD2tFzGdOA@mail.gmail.com' \
    --to=moptop99@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).