hide file numbers in output editor
Dependencies
- [2]
2TFAEKOCimprove documentation for edit.draw - [3]
O2E2MUT2resolve conflicts - [4]
DALNQKAVresolve conflicts - [5]
VAVXKWZVaggregate global state inside a 'pane' object - [6]
4GYPLUDYstreamline the interface for Text.draw - [7]
I64IPGJXavoid saving fragments in lines - [8]
Y3ZR4TOKMerge lines.love - [9]
ZM7NOBRMnew fork: carousel shell - [10]
JNAQUQKBMerge lines.love - [11]
3HHPHDOOcouple of typos - [12]
V5SYDHPQstart thinking of compute_fragments as a detail - [13]
ICS45BILeditor widget now takes a bottom margin - [14]
XUGDTYW2stop confusingly reading a global - [15]
5RUFNRJOstart of the visual skeleton - [16]
BW2IUB3Kkeep all text cache writes inside text.lua - [17]
OV6FE23RMerge text0 - [18]
G2SVT3ROMerge text0 - [19]
R2ASHK5Cfix a bad merge - [20]
G3DLS5OUaudit all asserts - [21]
ILOA5BYFseparate data structure for each line's cache data - [22]
3ZSUBI57drop some redundant args from Text.draw - [23]
4LW3LB4JMerge text0 - [24]
WR2WMEPEimplement 'Run' button - [25]
B4H3KLKRMerge text0 - [26]
H5UZI3YNeditor documentation - [27]
3XNFQDDNMerge lines.love - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
N2NUGNN4include a brief reference enabling many useful apps - [*]
2L5MEZV3experiment: new edit namespace
Change contents
- replacement in text.lua at line 11
function Text.draw(State, line_index, y, startpos, fg, hide_cursor)function Text.draw(State, line_index, y, startpos, fg, hide_cursor, show_line_numbers) - replacement in text.lua at line 19
App.color(Line_number_color)love.graphics.print(line_index, State.left-Line_number_width*App.width('m')+10,y)if show_line_numbers thenApp.color(Line_number_color)love.graphics.print(line_index, State.left-Line_number_width*App.width('m')+10,y)end - replacement in reference.md at line 205
* `edit.draw(state, fg, hide_cursor)` -- call this from `on.draw` to displaythe current editor state on the app window as requested in the call to`edit.initialize_state` that created `state`. `fg` is the color forforeground text (`Text_color` is a good default). Set `hide_cursor` to stopshowing a blinking cursor (usually because you want a `readonly` editor; seebelow).* `edit.draw(state, fg, hide_cursor, show_line_numbers)` -- call this from`on.draw` to display the current editor state on the app window as requestedin the call to `edit.initialize_state` that created `state`. `fg` is thecolor for foreground text (`Text_color` is a good default). Set`hide_cursor` to stop showing a blinking cursor (usually because you want a`readonly` editor; see below), and `show_line_numbers` to render linenumbers to the left of the editor. - replacement in edit.lua at line 110
function edit.draw(State, fg, hide_cursor)function edit.draw(State, fg, hide_cursor, show_line_numbers) - replacement in edit.lua at line 128
y, screen_bottom1.pos = Text.draw(State, line_index, y, startpos, fg, hide_cursor)y, screen_bottom1.pos = Text.draw(State, line_index, y, startpos, fg, hide_cursor, show_line_numbers) - replacement in 0012-on.draw at line 7
edit.draw(Current_pane.editor_state)edit.draw(Current_pane.editor_state, --[[fg]] nil, --[[hide_cursor]] nil, --[[show_line_numbers]] true)