clean up some issues I now feel confident about
[lines.love.git] / README.md
blob7e9ac31e7b81f20611e4ad8acf44cb27b25d14a8
1 # Plain text with lines
3 An editor for plain text where you can also seamlessly insert line drawings.
4 Designed above all to be easy to modify and give you early warning if your
5 modifications break something.
7 http://akkartik.name/lines.html
9 ## Getting started
11 Install [LÖVE](https://love2d.org). It's just a 5MB download, open-source and
12 extremely well-behaved. I'll assume below that you can invoke it using the
13 `love` command, but that might vary depending on your OS.
15 To run from the terminal, [pass this directory to LÖVE](https://love2d.org/wiki/Getting_Started#Running_Games),
16 optionally with a file path to edit.
18 Alternatively, turn it into a .love file you can double-click on:
19 ```
20 $ zip -r /tmp/lines.love *.lua
21 ```
23 By default, lines.love reads/writes the file `lines.txt` in
24 [a directory relative to this app](https://love2d.org/wiki/love.filesystem.getSourceBaseDirectory).
26 To open a different file, drop it on the lines.love window.
28 ## Keyboard shortcuts
30 While editing text:
31 * `ctrl+f` to find patterns within a file
32 * `ctrl+c` to copy, `ctrl+x` to cut, `ctrl+v` to paste
33 * `ctrl+z` to undo, `ctrl+y` to redo
34 * `ctrl+=` to zoom in, `ctrl+-` to zoom out, `ctrl+0` to reset zoom
35 * `alt+right`/`alt+left` to jump to the next/previous word, respectively
36 * mouse drag or `shift` + movement to select text, `ctrl+a` to select all
37 * `ctrl+e` to modify the sources
39 For shortcuts while editing drawings, consult the online help. Either:
40 * hover on a drawing and hit `ctrl+h`, or
41 * click on a drawing to start a stroke and then press and hold `h` to see your
42   options at any point during a stroke.
44 lines.love has been exclusively tested so far with a US keyboard layout. If
45 you use a different layout, please let me know if things worked, or if you
46 found anything amiss: http://akkartik.name/contact
48 ## Known issues
50 * No support yet for Unicode graphemes spanning multiple codepoints.
52 * No support yet for right-to-left languages.
54 * The text cursor will always stay on the screen. This can have some strange
55   implications:
57     * A long series of drawings will get silently skipped when you hit
58       page-down, until a line of text can be showed on screen.
59     * If there's no line of text at the top of the file, you may not be able
60       to scroll back up to the top with page-up.
62   So far this app isn't really designed for drawing-heavy files. For now I'm
63   targeting mostly-text files with a few drawings mixed in.
65 * No clipping yet for drawings. In particular, circles/squares/rectangles and
66   point labels can overflow a drawing.
68 * If you ever see a crash when clicking on the mouse, it might be because a
69   mouse press and release need to happen in separate frames. Try pressing and
70   releasing more slowly and let me know if that helps or not. This is klunky,
71   sorry.
73 * Touchpads can drag the mouse pointer using a light touch or a heavy click.
74   On Linux, drags using the light touch get interrupted when a key is pressed.
75   You'll have to press down to drag.
77 * Can't scroll while selecting text with mouse.
79 * No scrollbars yet. That stuff is hard.
81 ## Mirrors and Forks
83 Updates to lines.love can be downloaded from the following mirrors in addition
84 to the website above:
85 * https://git.sr.ht/~akkartik/lines.love
86 * https://repo.or.cz/lines.love.git
87 * https://tildegit.org/akkartik/lines.love
88 * https://git.merveilles.town/akkartik/lines.love
89 * https://git.tilde.institute/akkartik/lines.love
90 * https://codeberg.org/akkartik/lines.love
91 * https://github.com/akkartik/lines.love
92 * https://notabug.org/akkartik/lines.love
93 * https://pagure.io/lines.love
94 * https://nest.pijul.com/akkartik/lines.love (using the Pijul version control system)
96 Forks of lines.love are encouraged. If you show me your fork, I'll link to it
97 here.
99 * https://github.com/akkartik/lines-polygon-experiment -- an experiment that
100   uses separate shortcuts for regular polygons. `ctrl+3` for triangles,
101   `ctrl+4` for squares, etc.
102 * https://git.sr.ht/~akkartik/text.love -- a stripped down version without
103   drawings; useful starting point for some forks
104 * https://git.sr.ht/~akkartik/pensieve.love -- a note-taking app on an
105   infinite 2D surface. Still in development.
106 * https://git.sr.ht/~akkartik/capture.love -- a blank-slate mode for the
107   note-taking app, so all the stuff pensieve.love puts on screen doesn't cause
108   you to forget what you came to write down.
109 * https://git.sr.ht/~akkartik/lines2.love -- an entirely new implementation of
110   some foundations that seems more elegant.
112 ## Associated tools
114 * https://codeberg.org/akkartik/lines2md exports lines.love files to Markdown
115   and (non-editable) SVG.
116 * https://git.sr.ht/~akkartik/lines2html.love exports lines.love files to html
117   and inline SVG.
118 * https://codeberg.org/eril/lines2html.love provides the option to export
119   just the drawings to a directory. Also provides a CLI, which should be more
120   natural for many people.
122 ## Feedback
124 [Most appreciated.](http://akkartik.name/contact) Messages, PRs, patches,
125 forks, it's all good.