| Commit message (Collapse) | Author |
|
I know, it feels wrong.
|
|
Losing tab complete and text macros, for now.
This new implementation works on an instance of a struct and does
not interact with the rest of catgirl, making it possible to copy
into another project. Unlike existing line editing libraries, this
one is entirely abstract and can be rendered externally.
My goal with this library is to be able to implement vi mode. Since
it operates on struct instances rather than globals, it might also
be possible to give catgirl separate line editing buffers for each
window, which would be a nice UX improvement.
|
|
Do some extra work by adding the portion before the cursor to the
input window twice, but simplify the interaction with the split
point. This fixes the awkward behaviour when moving the cursor
across colour codes where the code would be partially interpreted
up to the cursor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tags are much better for referring to specific parts of a file and line
numbering is better done by a post-processing tool such as cat -n or
producing a two-column HTML <table>.
|
|
|
|
Running hi twice to insert stuff between the head and the content is a
bit of a hack but oh well.
|
|
|
|
|
|
Renames previous -n option to -m to stay consistent with cat -n.
Prefixing lines with line numbers affects where the first tab indent
ends up relative to the text above it. Not sure if it's worth fixing
somehow.
|
|
Simplifies ANSI and IRC output code, and prepares for line numbered
output.
|
|
|
|
|
|
|
|
|
|
|