about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-08-14 09:53:16 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-08-14 09:53:16 -0700
commita85b984021679f20792e6afdff752a2522640754 (patch)
tree358d13ceefe3428d21efcb5d6f74f7747ab5a10a
parent9d792a203bb00b0f5521698fd1c6890f0cc12032 (diff)
downloadview.love-a85b984021679f20792e6afdff752a2522640754.tar.gz
clean up a few more loose ends
-rw-r--r--README.md19
-rw-r--r--edit.lua4
-rw-r--r--undo.lua2
3 files changed, 0 insertions, 25 deletions
diff --git a/README.md b/README.md
index 7c49842..c089fdb 100644
--- a/README.md
+++ b/README.md
@@ -31,11 +31,6 @@ While editing text:
 * `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
 
-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
 you use a different layout, please let me know if things worked, or if you
 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
   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
   screen line and start of the next, so clicking the mouse to position the
   cursor can very occasionally do the wrong thing.
diff --git a/edit.lua b/edit.lua
index bc34158..1b888a8 100644
--- a/edit.lua
+++ b/edit.lua
@@ -256,8 +256,6 @@ function edit.keychord_pressed(State, chord, key)
       State.selection1 = deepcopy(src.selection)
       patch(State.lines, 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
       Text.redraw_all(State)
       schedule_save(State)
@@ -271,8 +269,6 @@ function edit.keychord_pressed(State, chord, key)
       State.cursor1 = deepcopy(src.cursor)
       State.selection1 = deepcopy(src.selection)
       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
       Text.redraw_all(State)
       schedule_save(State)
diff --git a/undo.lua b/undo.lua
index b3b9a00..2db36ac 100644
--- a/undo.lua
+++ b/undo.lua
@@ -50,8 +50,6 @@ function snapshot(State, s,e)
     screen_top=deepcopy(State.screen_top1),
     selection=deepcopy(State.selection1),
     cursor=deepcopy(State.cursor1),
-    current_drawing_mode=Drawing_mode,
-    previous_drawing_mode=State.previous_drawing_mode,
     lines={},
     start_line=s,
     end_line=e,