summary refs log tree commit diff stats
path: root/lib/system/gc_common.nim
Commit message (Expand)AuthorAgeFilesLines
* gc_common: typoAndreas Rumpf2019-09-161-1/+1
* styleCheck: make the compiler and large parts of the stdlib compatible with -...Araq2019-07-101-2/+2
* [feature] Add dynlib (required on windows/cpp) to nimCoroutines related gc_co...Giovanni Petrantoni2019-06-231-3/+3
* [bugfix] gc_common: export foreign thread gc docs (#11536)alaviss2019-06-191-6/+12
* use atomicInc/atomicDec (#10906)Miran2019-03-271-6/+5
* fixes -d:nimTypeNames leak detection regressionAndreas Rumpf2019-03-211-4/+4
* --newruntime: progressAndreas Rumpf2019-03-141-1/+0
* Initial version of the hot-code reloading support for native targets (#10729)zah2019-02-261-4/+4
* system refactorings (#10559)Andreas Rumpf2019-02-061-2/+2
* make the stdlib work with the changed docgenAraq2019-01-111-1/+1
* make testament compile again with -d:nimCoroutinesAraq2018-11-151-21/+21
* gc_common: fixes a typoAndreas Rumpf2018-11-151-19/+19
* No setjump in GC for emscripten/wasm (#9386)Yuriy Glukhov2018-10-171-14/+21
* Iterator over heap instances (#8548)Emery Hemingway2018-08-071-8/+14
* Implements alloc/dealloc counters for better leak debugging. (#8384)Dominik Picheta2018-07-211-0/+3
* gc_common: minor reformatingAndreas Rumpf2018-07-011-2/+2
* Expose GC_setStackBottom (#7885)Yuriy Glukhov2018-06-041-2/+2
* GC: also report total GC'ed heap size ignoring losses due to fragmentationAndreas Rumpf2018-01-211-1/+3
* GC: fixes size computation for leak detectionAndreas Rumpf2018-01-211-4/+4
* GC add 'string' to dumpNumberOfInstancesAndreas Rumpf2018-01-211-0/+5
* fixes size computations for 'dumpNumberOfInstances'Andreas Rumpf2018-01-191-1/+1
* leak detector: sort type based entries by total used bytesAndreas Rumpf2018-01-181-2/+28
* GC: enable precise global/thread local storage tracingAraq2018-01-151-0/+1
* GC improvements; distinguish between thread local and globals in the marking ...Araq2018-01-141-0/+24
* make gc:v2 compile againAndreas Rumpf2017-09-221-5/+15
* added system.deallocHeap feature for Nim's native GCsAndreas Rumpf2017-07-221-0/+32
* added logic to the M&S GC to detect logical leaksAraq2017-06-161-0/+7
* Fixed compilation error (#5462)Yuriy Glukhov2017-03-021-3/+0
* Use constant nimCoroutines instead of defined(nimCoroutines)Rokas Kupstys2017-02-201-5/+5
* Cleanup of gc codeRokas Kupstys2017-02-201-146/+133
* Reworked gc support for coroutines. Nim now bootstraps with -d:nimCoroutinesRokas Kupstys2017-02-201-97/+97
* Delete fiber context when it exits (memleak fix)Rokas Kupstys2017-02-201-2/+18
* Coroutine rework.Rokas Kupstys2017-02-201-5/+2
* Add ``tearDownForeignThreadGc`` function (#5369)Anatoly Galiulin2017-02-131-9/+20
* system.nim: don't use deprecated symbols/constructsAraq2017-02-081-5/+5
* Mark setupForeignThreadGc and initGC as gcsafe (#5353)Anatoly Galiulin2017-02-081-1/+1
* docs for the heap dump featureAndreas Rumpf2017-01-161-0/+1
* M&S GC gets the heap dump featureAndreas Rumpf2017-01-151-0/+24
* call initAllocator in foreign threadJez Kabanov2016-10-051-0/+1
* clean up a few stray c_stdout's in gc debug codeJacek Sieka2016-07-311-3/+3
* prepare Nim codebase for upcoming parser changesAndreas Rumpf2016-07-151-2/+2
* GCs support ForeignCellsAndreas Rumpf2016-03-051-0/+25
* SpellcheckFederico Ceratto2016-02-291-2/+2
* Remove system.setupForeignThreadGc if `threads` option is off or TLSAnatoly Galiulin2016-01-281-12/+22
* Use ByteAddress instead of deprecated TAddressdef2016-01-241-4/+4
* Change TAddress to ByteAddressAndrey Sobolev2015-09-141-3/+3
* Support for GC working in Emscripten environmentAndrey Sobolev2015-09-111-5/+7
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-2/+2
* Coroutine support for i386/amd64 platforms unix/windows OSes markAndSweep/ref...rku2015-07-311-0/+275
id='n50' href='#n50'>50 51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125

                       



                                                                            

                               













                                                                             



                                                                                 

                                                                              

     


                                                            

   


                                                                       












                                                                              



                                                                           
               
 


                                                                      
                                                                    
 

                                                                           
 



                                                                              
 

                                                                            
 

                                                                      

                                                                            
 
                                                                            
                                                           
 


                                                                           













                                                                              



                                                                              



                                               












                                                                              
                                                                             




                                                 
# Plain text with lines

An editor for plain text where you can also seamlessly insert line drawings.
Designed above all to be easy to modify and give you early warning if your
modifications break something.

http://akkartik.name/lines.html

## Invocation

Like all LÖVE apps, lines.love can be invoked either from a terminal or
by clicking on the application in a graphical desktop.

When invoked from a terminal, you can pass the love binary the path to either
the zipped lines.love or a directory containing lines.love unzipped.

```sh
$ path/to/love path/to/lines.love

$ path/to/love .  # from this repo directory
$ path/to/love path/to/lines/directory  # from anywhere
```

By default, lines.love reads/writes the file `lines.txt` in your default
user/home directory (`https://love2d.org/wiki/love.filesystem.getUserDirectory`).

When invoked from a terminal, you can pass in a different file to edit, either
to the zipped or unzipped versions:

```sh
$ path/to/love path/to/lines.love path/to/file/to/edit

$ path/to/love path/to/lines/directory /path/to/file/to/edit
```

On a graphical desktop you can also drag and drop a file icon on to the
lines.love window.

## Keyboard shortcuts

While editing text:
* `ctrl+f` to find patterns within a file
* `ctrl+c` to copy, `ctrl+x` to cut, `ctrl+v` to paste
* `ctrl+z` to undo, `ctrl+y` to redo
* `ctrl+=` to zoom in, `ctrl+-` to zoom out, `ctrl+0` to reset zoom

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.

lines.love has been 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/about

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

* Large files may grow sluggish in other ways. Pasting more than a line or two
  gets slow. I've noticed in 100KB files that closing the window can take a
  few seconds. And it seems to take longer in proportion to how far down my
  edits are. The phenomenon persists even if I take out undo history.

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

## Mirrors and Forks

Updates to lines.love can be downloaded from the following mirrors in addition
to the website above:
* https://github.com/akkartik/lines.love
* https://repo.or.cz/lines.love.git
* https://codeberg.org/akkartik/lines.love
* https://tildegit.org/akkartik/lines.love
* https://git.tilde.institute/akkartik/lines.love
* https://git.sr.ht/~akkartik/lines.love
* https://pagure.io/lines.love

Forks of lines.love are encouraged. If you show me your fork, I'll link to it
here.

## Feedback

[Most appreciated.](http://akkartik.name/contact)