From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
Subject: [sup-talk] redo ideas
Date: Mon, 27 Apr 2009 21:47:00 +0200 [thread overview]
Message-ID: <1240861270-sup-8603@ausone.local> (raw)
In-Reply-To: <200904271244.n3RCi1VO027803@smtp6.server.rpi.edu>
Excerpts from Mike S's message of Mon Apr 27 14:43:46 +0200 2009:
> I'm graduating in a few weeks, so I'll have some free time I can dedicate
> to sup again.
>
> Recently redo functionality was suggested, I believe this was meant to be
> a solution for something, but I have been thinking about it for a while.
> I'd like to register Ctrl-R to keep with the vim bindings.
Just some thoughts about this... I was more thinking about the repeat feature
of Vi/Vim (the '.' command) than the redo one.
Two other ways of doing the undo/redo:
1/ Save the actions using a data type that we can inverse.
Example in Ruby syntax
a = Action.add_labels(:foo, :bar)
a.apply # actually do the job
a.invert # equals to Action.remove_labels(:foo, :bar)
2/ Save the state (has to be defined) at each action.
This solution would be limited to actions where the state is manageable.
Best regards,
--
Nicolas Pouillard
next parent reply other threads:[~2009-04-27 19:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200904271244.n3RCi1VO027803@smtp6.server.rpi.edu>
2009-04-27 19:47 ` Nicolas Pouillard [this message]
2009-04-29 18:22 ` William Morgan
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1240861270-sup-8603@ausone.local \
--to=nicolas.pouillard@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox