]> git.lizzy.rs Git - micro.git/commit
Add `savecursor` option
authorZachary Yedidia <zyedidia@gmail.com>
Sat, 28 May 2016 21:29:49 +0000 (17:29 -0400)
committerZachary Yedidia <zyedidia@gmail.com>
Sat, 28 May 2016 21:29:49 +0000 (17:29 -0400)
commita92a7dc4e6e2426b081d70f1ff21e438c67b8da9
tree5e063b0042206ed5c101ca4604039d0b8faae3b0
parent96c7bc67c001fef5eb41817076ceb8d9cc74df0e
Add `savecursor` option

This adds the `savecursor` option which will remember where the cursor
was when the file was closed and put it back when the file is opened
again. The option is off by default so that people aren't confused as to
why the cursor isn't at the start of a file when they open it.

This commit also adds a more general ability to serialize a buffer so
various components can be saved (which could also be useful for persistent
undo).

Fixes #107
cmd/micro/bindings.go
cmd/micro/buffer.go
cmd/micro/command.go
cmd/micro/cursor.go
cmd/micro/runtime.go
cmd/micro/search.go
cmd/micro/settings.go
cmd/micro/statusline.go
cmd/micro/util.go
cmd/micro/view.go
runtime/help/help.md