An editor for plain text where you can also seamlessly insert line drawings http://akkartik.name/lines.html
Go to file
Kartik K. Agaram 23e9be3e10 selecting text and deleting selections
I've written a few tests for delete_selection, but the way different
operations initialize the selection seems fairly standard and not worth
testing so far.
2022-05-29 08:12:47 -07:00
LICENSE.txt add a license 2022-05-16 18:51:28 -07:00
README.md support for naming points 2022-05-21 14:03:06 -07:00
app.lua test and App helper for mouse clicks 2022-05-25 13:38:33 -07:00
button.lua highlight another global 2022-05-17 23:24:46 -07:00
drawing.lua few more transitions between shapes 2022-05-25 17:07:19 -07:00
file.lua typos 2022-05-25 17:07:06 -07:00
geom.lua rectangle and square shapes 2022-05-18 15:29:18 -07:00
help.lua help tweak 2022-05-21 14:20:16 -07:00
icons.lua rectangle and square shapes 2022-05-18 15:29:18 -07:00
json.lua forgot to add json.lua 2022-05-15 14:36:25 -07:00
keychord.lua bugfix: include shift keys in modifier_down 2022-05-28 23:01:01 -07:00
main.lua selecting text and deleting selections 2022-05-29 08:12:47 -07:00
manual_tests support for naming points 2022-05-21 14:03:06 -07:00
test.lua selecting text and deleting selections 2022-05-29 08:12:47 -07:00
text.lua selecting text and deleting selections 2022-05-29 08:12:47 -07:00

README.md

Known issues:

  • 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.

  • No support yet for Unicode graphemes spanning multiple codepoints.

  • 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.