rxi
82e33dd2de
Moved event-waiting when not focused to after run_threads()
2020-05-24 13:43:34 +01:00
rxi
946c125fd4
Changed `core.redraw` to be set to `true` by default
...
As the window isn't created until the first frame is drawn this is required to
assure the window is ever shown without relying on the assumption that some
other part of the program would have set this to true
2020-05-24 08:04:47 +01:00
rxi
28b1844a8b
Added support for dropping a folder onto the window
2020-05-23 11:31:08 +01:00
rxi
e45b3e2bc0
Minor renaming in rootview
2020-05-23 09:40:42 +01:00
rxi
e7320c2291
Made RootView:open_doc() try to use previous node if current node is locked
2020-05-22 15:50:27 +01:00
rxi
6b39fb6dfb
Changed autoreload to strip carriage-returns on reload
2020-05-21 09:58:47 +01:00
rxi
7aabfebfa0
Fixed mouse-position resolution when dropping a file
2020-05-20 10:33:08 +01:00
rxi
08ce7e2563
Fixed stuck mouse-drag-selection on dropped-file
...
Resolves #109
2020-05-20 09:52:01 +01:00
rxi
bc4bf3d384
Added core.set_active_view(); removed `focusable` boolean from View
2020-05-19 14:55:46 +01:00
rxi
8ec717f240
Added temporary backwards compatibility for `core.project_dir`
2020-05-18 10:28:01 +01:00
rxi
4ae0d477c0
Made lite set project dir to CWD; removed core.project_dir
...
Fixes #100
2020-05-17 17:05:56 +01:00
rxi
adecaba292
Removed unused varibale in ./data/plugins/treeview.lua
2020-05-17 14:02:49 +01:00
rxi
4644154e5b
Added `config.ignore_files`
...
Filenames that match either the single pattern provided by
`config.ignore_files`, or any pattern in a table of patterns, will be ignored
when lite is filling the `core.project_files` table
Resolves #77
Resolves #102
2020-05-17 13:38:45 +01:00
rxi
7e7602c53c
Removed `exec` plugin -- moved to `lite-plugins` repo
2020-05-16 10:06:35 +01:00
rxi
59f5692f2e
Merge branch 'master' of https://github.com/rxi/lite
2020-05-16 10:00:13 +01:00
rxi
bc3147e1d0
Changed config.mouse_wheel_scroll default to multiply by SCALE
2020-05-16 09:46:31 +01:00
rxi
15129b49a6
Moved `config.treeview_size` from `config.lua` to `treeview.lua`
2020-05-16 09:44:31 +01:00
demotulatingswan
92b3b5ba86
Fixed various issues in exec:replace
2020-05-15 20:39:10 +02:00
rxi
b8d2805502
Exposed doc's internal insert/remove: Doc:raw_insert|remove
2020-05-14 16:40:50 +01:00
rxi
ef53453246
Fixed x-offset of text in `DocView:draw_line_gutter`
2020-05-14 13:26:21 +01:00
rxi
6525269386
Made tokenizer skip parsing process on plain-text files
...
This, along with the earlier rencache changes should resolve #64
2020-05-14 10:10:50 +01:00
rxi
bcd1b3a081
Fixed gutter text jittering when horizontal scrolling on docview
2020-05-14 10:06:47 +01:00
rxi
e4ae088bb5
Added support for shift+click selecting
...
Resolves #71
Resolves #59
2020-05-13 16:12:20 +01:00
rxi
1f55fec94b
Fixed triple-clicking on last line not selecting the line
2020-05-13 09:29:53 +01:00
rxi
ed86f7d04e
Fixed find-replace:select-next erroring on multiline selection
2020-05-12 20:05:17 +01:00
rxi
7f6a2710ef
Made clicking the message on the StatusView open a LogView
2020-05-12 14:44:29 +01:00
rxi
23cf193026
Fixed lua's multi-line comment syntax pattern
...
Resolves #86
Resolves #87
2020-05-12 10:12:49 +01:00
rxi
ff2c7bf5e5
Added double-backtick support to language_md plugin
...
Resolves #80
2020-05-11 20:31:35 +01:00
rxi
af36658e68
Added custom suggestions support to autocomplete
...
`autocomplete.add()` can now be used to add additional auto complete suggestions
with descriptions
2020-05-11 19:37:50 +01:00
rxi
c215eff6d8
Improved idle CPU utilisation when not-focused, added system.wait_event()
2020-05-11 00:21:07 +01:00
Willie Lawrence
a17fe46c05
Fixing trimwhitespace plugin bug
2020-05-10 11:26:44 -03:00
rxi
22f563e712
Merge branch 'master' of https://github.com/rxi/lite
2020-05-10 13:56:31 +01:00
Daniel M
2ed29cae11
Put back get and set
2020-05-10 10:56:28 +02:00
Daniel M
3974971ff9
Update language_js.lua
2020-05-10 10:51:45 +02:00
rxi
543234c42e
Removed redundant line from syntax highlighter
2020-05-10 09:20:06 +01:00
rxi
8671b02bdc
Whitespace
2020-05-10 09:14:12 +01:00
rxi
3d49b6d200
Fixed highlighter resetting of syntax on doc filename change
2020-05-09 16:28:18 +01:00
rxi
70f62f3c8a
Added `doc:rename` command; changed command_view:set_text to take `select` argument
2020-05-09 16:09:07 +01:00
rxi
7479c1380d
Added commands `root:shrink` and `root:grow`
2020-05-09 14:40:26 +01:00
rxi
b08f870f47
Added stripping of carriage-returns when pasting
2020-05-09 14:22:13 +01:00
rxi
ffdaec47e8
Default color theme adjustments
2020-05-09 11:10:19 +01:00
rxi
18b7d70a91
Fixed rare case where core.doc.highlighter would iterate out of line bounds
2020-05-09 09:09:39 +01:00
rxi
a651d48e84
Wrapped `core.on_event` calls in `core.try`
2020-05-09 08:38:51 +01:00
rxi
22171fa802
Simplified core.step()
2020-05-08 20:44:53 +01:00
rxi
31820b36ef
Moved `syntax` from `doc.highlighter` to `doc`
2020-05-08 20:29:22 +01:00
rxi
2642f7443f
Added default text to find-replace's "new text" input
2020-05-08 13:55:23 +01:00
rxi
1d2a0aada5
Made `doc:toggle-line-comments` command skip empty lines
2020-05-08 09:07:13 +01:00
rxi
bf8565d2a1
Fixed `doc:toggle-line-comments` for syntax highlighter relocation
2020-05-07 23:11:04 +01:00
rxi
95bdb07d49
Removed unused variables
2020-05-07 22:40:34 +01:00
rxi
de94c8a13c
Removed unused variables in core.init
2020-05-07 22:25:52 +01:00
rxi
762c1e2b69
Fixed RootView's EmptyView keymap text
...
Broke due to command renaming
2020-05-07 21:46:21 +01:00
rxi
f5025efbb8
Moved highlighter code from `DocView` to `Doc`
...
* Only one highlighter state is kept per-document as opposed
to one per-docview
* Fixes a bug with retaining older highlighter state as a
DocView wasn't able to detect lines changing above it's viewport
* Renames `highlighter` module to more descriptive `tokenizer`
2020-05-07 21:14:46 +01:00
rxi
ae42176953
Renamed `common.matches_pattern` => `common.match_pattern`
2020-05-07 14:18:46 +01:00
rxi
7cdf7dc44f
Changed TreeView to first initialize its size in :update()
2020-05-07 14:03:37 +01:00
rxi
5acc391288
Added logging when project module is loaded
2020-05-07 13:41:39 +01:00
rxi
596b40c741
Made `find-replace:find-symbol` use first symbol in sel as default
2020-05-07 10:55:11 +01:00
rxi
3057786ce2
Moved `matches_pattern` from `syntax` to `common`
2020-05-07 10:27:37 +01:00
rxi
73996e3dc9
Changed core to store `modified` and `size` in project_files table
2020-05-06 17:03:10 +01:00
rxi
5361bfaf9c
Added open-[project|user]-module commands, renamed command/file finder commands
2020-05-06 14:48:04 +01:00
rxi
271e5434d0
Added support for a `.lite_project.lua` file in project directory
2020-05-06 13:29:35 +01:00
rxi
7610e1064f
Added multiline support for LogView's messages
2020-05-06 00:06:27 +01:00
rxi
15cfbfbc46
Increased config.max_log_items from 20 to 80
2020-05-05 23:40:42 +01:00
rxi
9bd6efddd7
Made separator and separator2 fields of StatusView
2020-05-03 22:44:49 +01:00
rxi
d5ffee51ff
Added StatusView:get_items()
2020-05-03 18:47:55 +01:00
rxi
844dced7cd
Simplified StatusView item drawing
2020-05-03 18:43:24 +01:00
rxi
d859ce5fcd
Added mapping for `shift+delete` to keymap
2020-05-03 18:37:06 +01:00
rxi
69e6550eba
Added mappings for `ctrl+delete` and `ctrl+shift+delete` to keymap
2020-05-03 18:35:16 +01:00
rxi
05ca43e637
Changed rounding type on common.draw_text()
2020-05-03 16:48:35 +01:00
rxi
26d6e558f1
Added brightness transition to projectsearch text/line on complete
2020-05-02 16:53:03 +01:00
rxi
0967740d88
Improved findreplace replace log and commandview text
2020-05-02 14:45:33 +01:00
rxi
5155ce0527
Added `replace-symbol` command to findreplace plugin
2020-05-02 11:14:07 +01:00
rxi
9fc185af2f
Added scroll bounds
...
Resolves #9
Resolves #6
Resolves #3
2020-05-02 00:21:04 +01:00
rxi
28cdd3cabe
Minor cleanup in core.statusview and core.commands.core
2020-05-01 20:17:10 +01:00
rxi
a9f3079c90
Added `refresh` command (`f5`) to projectsearch plugin's ResultView
2020-05-01 19:32:02 +01:00
rxi
4ca35fe056
Added command `doc:select-none`, added binding to `escape`
2020-05-01 19:25:17 +01:00
rxi
885ed5f860
Improved handling of zero-sized locked nodes on RootView
2020-05-01 16:17:07 +01:00
rxi
ab8510291e
Added find-replace:select-next, bound to ctrl+d by default
2020-05-01 10:21:57 +01:00
rxi
044fdb3655
Prevented scroll-animation when LogView is initialized
2020-04-30 14:44:52 +01:00
rxi
4d39dcaded
Changed `View:get_content_offset()` to round resultant values
...
Avoids some issues that occur with fractional offsets, most noticable
on rectangles drawn on DocView jittering by 1-pixel when scrolling
2020-04-30 14:43:25 +01:00
rxi
2090379892
Fixed multiple links on one line in markdown syntax
2020-04-27 18:45:06 +01:00
rxi
439537d63e
Fixed format string passed to core.error() in core.try()
2020-04-26 21:40:25 +01:00
rxi
accf09c4f9
Changed printed filenames to use format-specifier "%s" instead of %q
...
Fixes #22
2020-04-25 13:26:55 +01:00
rxi
c658b6f1ca
Removed underscore from start of globals, added VERSION
...
eg. `_SCALE` => `SCALE`
prevents conflict with lua's own _NAME globals
2020-04-25 09:58:01 +01:00
rxi
592c16f3e0
Fixed rounding of CommandView suggestion popup box
2020-04-22 19:25:47 +01:00
rxi
9a32a00c73
Made core.log/error store call location instead of view
2020-04-22 00:02:35 +01:00
rxi
59881f81a6
Fixed common.path_suggest() for system.list_dir() changes
2020-04-21 23:47:01 +01:00
rxi
73e96c2641
Made project_scan_thread() ignore directories it can't open
...
Should fix #30 and #7
2020-04-21 23:43:35 +01:00
rxi
4191cf2c08
Added `core.try` wrapping of function passed to `core.add_thread`
2020-04-21 23:23:34 +01:00
rxi
b7ec7a6acf
core.doc.translate comment fix
2020-04-21 23:15:43 +01:00
rxi
b0e82f297e
Changed lua syntax to map label to function color
2020-04-21 22:56:27 +01:00
luveti
6ca88473c0
Added goto to lua language plugin
2020-04-21 15:36:58 -04:00
rxi
55d7fa58d0
Removed fake mouse-moved event on scroll change
...
This ends up causing more problems than it solves; Fixes #29
2020-04-19 17:21:27 +01:00
rxi
503d5101b5
Reorganising of DocView's draw functions
...
* Renamed `draw_line_body` => `draw_line_main`
* Renamed `draw_gutter_text` => `draw_line_gutter`
* Added `draw_line_text` for *just* the line text
2020-04-18 15:27:18 +01:00
rxi
7046bfca24
Made cut/copy no-op if there is no selection
2020-04-12 11:22:16 +01:00
rxi
1be7a32c6b
Fixed error on setting active view when closing certain splits in RootView
2020-04-12 11:14:49 +01:00
rxi
d4284edd5c
Replaced system.set_fullscreen with system.set_window_mode
...
Solves #24
2020-04-07 18:49:11 +01:00
rxi
2a5a36f64e
Changed mapping of collapsed/expanded icons on icon font
2020-03-25 23:36:56 +00:00
rxi
efed38d59c
Added system.set_fullscreen() and core:toggle-fullscreen command
2020-03-25 22:44:59 +00:00
rxi
1e9c3bef1f
Fixed autoreload plugin truncating last character of files with no newline at end
2020-03-24 19:48:27 +00:00
rxi
764b43494e
Moved .c, .lua and .md language syntaxes from core.syntax to plugins
2020-03-07 15:53:54 +00:00