项目作者: trosh

项目描述 :
editors that don't really delete
高级语言: Python
项目地址: git://github.com/trosh/nohide.git
创建时间: 2016-12-22T10:36:56Z
项目社区:https://github.com/trosh/nohide

开源协议:

下载


No Hide

editors that dont really delete,
or just an excuse to build editors

Idea

Reading good authors’ drafts brings insight and transparency
to their writing process. Reading people’s thought out edits
on online fora can bring the conversation to life.

Why not make a forum where everything you delete as you type
or edit can still be accessed? The users / writers, aware of
this, will write with a different mindset; let’s see if it’s
of any use!

Current solution

Implement one or several POC editors that keep deleted text
accessible.

Instead of a full blown history graph, I currently choose to
flatten deleted text. The point is not to scroll through
history, just to see the accumulated attempts.

For example

Here‘s
a screencast of nano.py in action.

Here’s an example of a session in ed:

  1. $ ed
  2. >a
  3. hello world
  4. .
  5. >s/hello/goodbye
  6. goodbye world
  7. >P
  8. hello goodbye world

TODO:

  • Everything in ed’s help’s todo list
  • Choose how to append after last line if there is an appendix.
    (currently doesn’t merge appendix as beginning of new text)
  • explore non line based storage ?
  • explore journaling storage (line-based or not)
  • vi