clean up a few more loose ends
This commit is contained in:
parent
9d792a203b
commit
a85b984021
19
README.md
19
README.md
|
@ -31,11 +31,6 @@ While editing text:
|
||||||
* `ctrl+=` to zoom in, `ctrl+-` to zoom out, `ctrl+0` to reset zoom
|
* `ctrl+=` to zoom in, `ctrl+-` to zoom out, `ctrl+0` to reset zoom
|
||||||
* `alt+right`/`alt+left` to jump to the next/previous word, respectively
|
* `alt+right`/`alt+left` to jump to the next/previous word, respectively
|
||||||
|
|
||||||
For shortcuts while editing drawings, consult the online help. Either:
|
|
||||||
* hover on a drawing and hit `ctrl+h`, or
|
|
||||||
* click on a drawing to start a stroke and then press and hold `h` to see your
|
|
||||||
options at any point during a stroke.
|
|
||||||
|
|
||||||
Exclusively tested so far with a US keyboard layout. If
|
Exclusively tested so far with a US keyboard layout. If
|
||||||
you use a different layout, please let me know if things worked, or if you
|
you use a different layout, please let me know if things worked, or if you
|
||||||
found anything amiss: http://akkartik.name/contact
|
found anything amiss: http://akkartik.name/contact
|
||||||
|
@ -52,20 +47,6 @@ found anything amiss: http://akkartik.name/contact
|
||||||
* If you kill the process, say by force-quitting because things things get
|
* If you kill the process, say by force-quitting because things things get
|
||||||
sluggish, you can lose data.
|
sluggish, you can lose data.
|
||||||
|
|
||||||
* The text cursor will always stay on the screen. This can have some strange
|
|
||||||
implications:
|
|
||||||
|
|
||||||
* A long series of drawings will get silently skipped when you hit
|
|
||||||
page-down, until a line of text can be showed on screen.
|
|
||||||
* If there's no line of text at the top of the file, you may not be able
|
|
||||||
to scroll back up to the top with page-up.
|
|
||||||
|
|
||||||
So far this app isn't really designed for drawing-heavy files. For now I'm
|
|
||||||
targeting mostly-text files with a few drawings mixed in.
|
|
||||||
|
|
||||||
* No clipping yet for drawings. In particular, circles/squares/rectangles and
|
|
||||||
point labels can overflow a drawing.
|
|
||||||
|
|
||||||
* Long wrapping lines can't yet distinguish between the cursor at end of one
|
* Long wrapping lines can't yet distinguish between the cursor at end of one
|
||||||
screen line and start of the next, so clicking the mouse to position the
|
screen line and start of the next, so clicking the mouse to position the
|
||||||
cursor can very occasionally do the wrong thing.
|
cursor can very occasionally do the wrong thing.
|
||||||
|
|
4
edit.lua
4
edit.lua
|
@ -256,8 +256,6 @@ function edit.keychord_pressed(State, chord, key)
|
||||||
State.selection1 = deepcopy(src.selection)
|
State.selection1 = deepcopy(src.selection)
|
||||||
patch(State.lines, event.after, event.before)
|
patch(State.lines, event.after, event.before)
|
||||||
patch_placeholders(State.line_cache, event.after, event.before)
|
patch_placeholders(State.line_cache, event.after, event.before)
|
||||||
-- invalidate various cached bits of lines
|
|
||||||
State.lines.current_drawing = nil
|
|
||||||
-- if we're scrolling, reclaim all fragments to avoid memory leaks
|
-- if we're scrolling, reclaim all fragments to avoid memory leaks
|
||||||
Text.redraw_all(State)
|
Text.redraw_all(State)
|
||||||
schedule_save(State)
|
schedule_save(State)
|
||||||
|
@ -271,8 +269,6 @@ function edit.keychord_pressed(State, chord, key)
|
||||||
State.cursor1 = deepcopy(src.cursor)
|
State.cursor1 = deepcopy(src.cursor)
|
||||||
State.selection1 = deepcopy(src.selection)
|
State.selection1 = deepcopy(src.selection)
|
||||||
patch(State.lines, event.before, event.after)
|
patch(State.lines, event.before, event.after)
|
||||||
-- invalidate various cached bits of lines
|
|
||||||
State.lines.current_drawing = nil
|
|
||||||
-- if we're scrolling, reclaim all fragments to avoid memory leaks
|
-- if we're scrolling, reclaim all fragments to avoid memory leaks
|
||||||
Text.redraw_all(State)
|
Text.redraw_all(State)
|
||||||
schedule_save(State)
|
schedule_save(State)
|
||||||
|
|
2
undo.lua
2
undo.lua
|
@ -50,8 +50,6 @@ function snapshot(State, s,e)
|
||||||
screen_top=deepcopy(State.screen_top1),
|
screen_top=deepcopy(State.screen_top1),
|
||||||
selection=deepcopy(State.selection1),
|
selection=deepcopy(State.selection1),
|
||||||
cursor=deepcopy(State.cursor1),
|
cursor=deepcopy(State.cursor1),
|
||||||
current_drawing_mode=Drawing_mode,
|
|
||||||
previous_drawing_mode=State.previous_drawing_mode,
|
|
||||||
lines={},
|
lines={},
|
||||||
start_line=s,
|
start_line=s,
|
||||||
end_line=e,
|
end_line=e,
|
||||||
|
|
Loading…
Reference in New Issue