In-progress note-taking app based on lines.love
Go to file
Kartik K. Agaram e7a985bd0a bugfix in previous commit
I almost pushed this to production. That would have been catastrophic;
the very first keystroke anyone typed into the editor would have failed.

And in the process, this fixes the next bug on my TODO list! Paste on
first line wasn't working. Now it is.
2022-06-05 09:51:54 -07:00
LICENSE.txt
README.md one more known issue 2022-06-03 14:42:08 -07:00
app.lua select text with shift + mouseclick 2022-06-04 14:54:40 -07:00
button.lua
drawing.lua yet another key conflict 2022-06-04 21:48:35 -07:00
file.lua
geom.lua bugfix: checking if a point is on a manhattan line 2022-05-30 15:27:03 -07:00
help.lua make online help fit within a drawing 2022-06-04 21:58:06 -07:00
icons.lua
json.lua
keychord.lua select text with shift + mouseclick 2022-06-04 14:54:40 -07:00
main.lua rename 2022-06-05 08:11:50 -07:00
manual_tests
search.lua extract a couple of files 2022-06-03 14:17:41 -07:00
select.lua more precise search highlighting 2022-06-03 14:37:32 -07:00
test.lua
text.lua bugfix in previous commit 2022-06-05 09:51:54 -07:00
text_tests.lua bugfix in previous commit 2022-06-05 09:51:54 -07:00
undo.lua crisp font rendering 2022-06-02 23:36:07 -07:00

README.md

Plain text with lines

http://akkartik.name/lines.html

Known issues

  • There's a bug in freehand drawings (C-p mode) that causes them to be highlighted even when the mouse is nowhere near them.

  • No support yet for Unicode graphemes spanning multiple codepoints.

  • Undo/redo can be sluggish in large files. If things get sluggish, killing the process 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 and point labels can overflow a drawing.

  • Insufficient handling of constraints when moving points. For example, if you draw a manhattan line and then move one of the points, you may not be able to hover on it anymore.

    There's two broad ways to fix this. The first is to relax constraints, switch the manhattan line to not be manhattan. The second is to try to maintain constraints. Either constrain the point to only move along one line (but what if it's connected to two manhattan lines?!), or constrain the other end of the line to move alongside. I'm not sure yet which would be more useful. Getting into constraints would also make the program more complex.

    Bottomline: at the moment moving points connected to manhattan lines, rectangles or squares can break drawings in subtle ways.

  • Touchpads can drag the mouse pointer using a light touch or a heavy click. On Linux, drags using the light touch get interrupted when a key is pressed. You'll have to press down to drag.

  • Can't scroll while selecting text with mouse.

  • No scrollbars yet. That stuff is hard.