Commit Graph

360 Commits

Author SHA1 Message Date
Francesco Abbate 9412b3f0d8 Do not add project path in files from project search 2021-01-13 17:09:35 +01:00
Francesco Abbate fcf763fe9c Fix problem when project directory has a trailing slash 2021-01-10 12:56:15 +01:00
Francesco Abbate 773464eab8 Merge remote-tracking branch 'rxi/master' 2021-01-04 13:59:53 +01:00
Francesco Abbate d85598ce17 Write workspace information in lite-xl config directory 2021-01-03 23:36:28 +01:00
Francesco Abbate e548a6adb9 Fix directories management to always keep the project's directory 2021-01-03 12:02:07 +01:00
Francesco Abbate 9e5bf485df Fix problem in workspace for relative directory 2020-12-31 09:09:21 +01:00
Francesco Abbate 77d65fb3a1 Add scrolling bar to TreeView 2020-12-30 16:15:33 +01:00
Francesco Abbate c3f5d2c144 Fix problems with project files and project directories
Now treat coherently the case when the project directory is removed from
the project directories.
2020-12-30 14:53:50 +01:00
Francesco Abbate b91a84eb56 Fix project change and quit versus workspace plugin 2020-12-30 14:31:36 +01:00
Francesco Abbate 0e263af3c6 Create common.serialize function 2020-12-30 13:32:25 +01:00
Francesco Abbate b0686bbe87 Remove mouse command to remove directory and remap create directory
Create directory is now re-mapped to control+(left click).
2020-12-30 12:00:51 +01:00
Francesco Abbate f2faddbec7 Add command to create a directory in a new category "files"
Use the alt + (left click) is tree view to create a directory and
shift + (middle click) to remove a project directory.
2020-12-30 11:52:26 +01:00
Francesco Abbate 08f36cda1f Add support for project directories in workspace plugin 2020-12-29 18:04:13 +01:00
Francesco Abbate b757f618f0 Import workspace plugin from franko/lite-plugins 2020-12-29 16:44:31 +01:00
Francesco Abbate b7168b5ebb Fix find in project problem with get_active_view 2020-12-28 23:35:52 +01:00
Francesco Abbate ddd56ec615 Add command to remove a directory from the project
In addition directories can be removed with a mouse middle-click in the
tree view pane.
2020-12-28 15:51:16 +01:00
Francesco Abbate c042bfc907 Change project files output to not include a prefix '/' in filename
It make sense to not put the initial '/' in the filename as the name
is relative to the top directory it belongs to.

By removing the the initial '/' in the filename we can re-introduce the
variable

core.project_files

to stay compatible with standard Lite. The project_files variable will
always point to the files table of the first entry of
core.project_directories.
2020-12-28 10:26:27 +01:00
Francesco Abbate df74781da8 Fix project search and status view for new add directory feature 2020-12-27 18:28:21 +01:00
Francesco Abbate e4fa196b33 Finalize add project directory feature 2020-12-27 11:32:52 +01:00
Francesco Abbate 39181a56fd Use relative path for filenames in project directories 2020-12-27 09:47:58 +01:00
Francesco Abbate 5449781353 Minor cleanup to project directory stuff 2020-12-26 23:39:27 +01:00
Francesco Abbate 54518c438d Cosmetic changes to names from previous commit 2020-12-26 23:29:18 +01:00
Francesco Abbate ec730e9520 Test configuration with project_files stored separately for each directory 2020-12-26 21:22:57 +01:00
Francesco Abbate 2f50f21f57 Preliminary version of projects with multiple directories 2020-12-26 16:48:08 +01:00
rxi 806f0e39e3 Added support for `.pyw` files in language_python plugin 2020-12-19 10:19:37 +00:00
Francesco Abbate 58d3e23ca1 Include detect-indent improved plugin into Lite XL 2020-11-21 23:22:44 +01:00
Francesco Abbate 1634f68250 Add a warning when disable auto-complete due to too many symbols 2020-11-17 12:34:46 +01:00
Francesco Abbate eb41569e8d Implement limits for maximum number of symbols in autocomplete
Implemented to avoid excessive memory usage when loading big files with
many unique words.
2020-11-14 23:48:56 +01:00
rxi 99831bbc29 Added lua5.4 attribute support to `language_lua` 2020-07-01 09:26:41 +01:00
rxi ae48049695 Changed `trimwhitespace` to never cause caret to reposition 2020-06-19 12:09:00 +01:00
rxi ba6c14846b Added file-header pattern support to `syntax` 2020-06-08 16:11:22 +01:00
rxi 877d940c0e language_js improvements 2020-06-05 22:38:06 +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 bc4bf3d384 Added core.set_active_view(); removed `focusable` boolean from View 2020-05-19 14:55:46 +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 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 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 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
Willie Lawrence a17fe46c05 Fixing trimwhitespace plugin bug 2020-05-10 11:26:44 -03: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 7cdf7dc44f Changed TreeView to first initialize its size in :update() 2020-05-07 14:03:37 +01:00
rxi 26d6e558f1 Added brightness transition to projectsearch text/line on complete 2020-05-02 16:53:03 +01:00
rxi 9fc185af2f Added scroll bounds
Resolves #9
Resolves #6
Resolves #3
2020-05-02 00:21:04 +01:00
rxi a9f3079c90 Added `refresh` command (`f5`) to projectsearch plugin's ResultView 2020-05-01 19:32:02 +01:00
rxi 2090379892 Fixed multiple links on one line in markdown syntax 2020-04-27 18:45:06 +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 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 2a5a36f64e Changed mapping of collapsed/expanded icons on icon font 2020-03-25 23:36:56 +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
rxi 2eab24032b Made up/down commands on projectsearch ResultView scroll view
Fixes #14
2020-02-22 13:36:08 +00:00
rxi d8c4bfa6ba Initial commit 2019-12-28 11:17:56 +00:00