Adam
d9fc6d407b
Merge pull request #377 from adamharrison/regex-anchored
...
Fixed small bug on bootup, and added in a multiline qualifier to replacements.
2021-08-12 09:52:54 -04:00
Francesco Abbate
3396a6c802
Use the start.lua file in data/core as a template
...
Instead of having a separate start.lua.in file in the scripts directory
and no start.lua file in data/core we use the file data/core/start.lua
as a template for Meson to generate the final start.lua file for release.
In this way people naturally trying to run lite-xl from the source folder
will have a start.lua file albeit without a resolved version number.
Otherwise, when using run-local script or the meson install command the
meson-generated start.lua file will be used as it should be.
2021-08-12 10:35:32 +02:00
Adam Harrison
e2a7578553
If multiple '..' handle correctly.
2021-08-11 20:54:03 -04:00
Adam Harrison
5e66f74f38
Handle proper path normalization if we begin with '..'.
2021-08-11 19:19:58 -04:00
Adam Harrison
acd122bc34
Small fix.
2021-08-11 18:38:36 -04:00
Adam Harrison
aa4d91a03f
Reverted hash changes; simply copy entire clipboard.
2021-08-11 18:14:46 -04:00
luarocks
205b52b08a
Revert language_lua
2021-08-11 23:33:00 +02:00
luarocks
0bafece6a6
Add textadept theme and correct language_lua just a bit
2021-08-11 23:33:00 +02:00
Adam Harrison
c644ca7df6
keep_inactive -> keep_active
2021-08-10 23:29:39 -04:00
Adam Harrison
40c68ffcc6
Pairs -> IPairs
2021-08-10 23:18:30 -04:00
Adam Harrison
851dc07408
Added in close others, and refactored close all.
2021-08-10 23:14:40 -04:00
Adam Harrison
26a77542e3
Fixed small bug on bootup, and added in a multiline qualifier to replacements.
2021-08-10 22:01:28 -04:00
Adam Harrison
255c45b30b
Since we're modifying the clipboard, actually makes way more sense to use this hash.
2021-08-10 21:29:33 -04:00
Adam Harrison
71e62ce84f
Added in a hash check to the system clipboard.
2021-08-10 21:25:40 -04:00
Adam
f3a8e264fe
Merge pull request #370 from adamharrison/home-fixes
...
Changed behaviour of home.
2021-08-10 14:46:48 -04:00
redtide
3468164518
Updated Meson configuration
...
- Added version and license metadata
- Configuration data to be used in configured files to set metadata
- Portable binary and directories in the main install directory
- Binary file installed in correct places for all supported platforms
- Freedesktop AppStream support
- Added missing files install rules
2021-08-09 22:26:16 +02:00
Adam Harrison
3c8da0fc3f
Added in selection as well.
2021-08-06 18:09:36 -04:00
Adam Harrison
2bf56e67c5
Changed behaviour of home.
2021-08-06 18:08:08 -04:00
Francesco Abbate
0b2bf227a8
Fix inactive divider intercepting mouse clicks
...
In the function Node:get_divider_overlapping_point() we check if we
hit a divider (separator between two nodes). If yes the event is
intercepted and used to set the cursor and drag the separator if
appropriate.
In reality, on mouse move events, when one of the node is a split
and one of its child is not resizable we don't set the cursor to
and we don't intercept the event. However on a mouse pressed event
the event was intercepted regardless of the fact that the child
nodes are resizable or not. This latter behavior was unwanted as it
prevents mouse clicks to be processed because of a divided that is
inactive.
In addition it prevented processing of mouse clicks when the child
node was invisible leading to issue #363 . For this latter the issue
was the invisible NagView in the upper part of the window.
To fix the problem we provide a divider with
Node:get_divider_overlapping_point() only if its child node are
resizable. In this way the mouse clicks or movements are intercepted
only if the divider is actually active.
2021-08-06 09:07:17 -07:00
Francesco Abbate
62bcc6abc2
Fix missing commas in autocomplete module
2021-08-02 10:07:43 +02:00
takase1121
1725b3ab83
revert config.lineguide option
2021-08-02 09:57:21 +08:00
takase1121
3b3677ca4b
add config.lineguide option
2021-08-02 09:57:21 +08:00
Adam
47eaca18d8
Merge branch 'master' into Merged
2021-08-01 14:58:36 -04:00
Francesco Abbate
135ad072bd
Move gutter width calculation out of loop
2021-07-28 13:02:38 -07:00
cukmekerb
4ad353eb4b
fix line number align bug
2021-07-28 13:02:38 -07:00
cukmekerb
63f406773b
align line numbers to right
2021-07-28 13:02:38 -07:00
Francesco Abbate
8103f21991
Only load plugins that are lua files
...
Before trying to load a plugin or checking its version verify if it
looks like a lua file.
Close issue #349 .
2021-07-27 23:18:15 +02:00
ep
af22a6a824
+readability, hopefully
2021-07-26 03:50:57 -07:00
ep
2df363747b
fix workspace folders on different drives in Windows
2021-07-26 03:50:57 -07:00
Adam Harrison
152fd6c66c
Fixed doc, and fixed plugin load.
2021-07-20 15:09:14 -04:00
Adam Harrison
c461cfae93
Removed unecessary duplicates.
2021-07-20 14:50:40 -04:00
Adam Harrison
0777a6f0b8
Merged dev to master.
2021-07-20 14:39:50 -04:00
Francesco Abbate
7605b626e8
Add language_cpp plugins
...
Brought form the 1.16.12 release.
It provides support for C++ using multi-part syntax patterns. Take
the priority over C language plugins for header files.
2021-07-19 08:18:38 +02:00
Francesco Abbate
d3f1a3a5b2
Bump 2.0-beta1 version
2021-07-17 21:30:25 +02:00
Adam Harrison
6330f4d596
Allowed find to function across different views.
2021-07-15 18:29:48 -04:00
Adam Harrison
a218a95c45
Updated keys as well.
2021-07-15 18:21:54 -04:00
Adam Harrison
0dda252096
Reverted find fixes.
2021-07-15 18:15:05 -04:00
takase1121
6bcdaa9d7a
Revert "fix number of parameters passed to self:move_towards"
...
Apparently the LSP intellisense is wrong on this one, this actually
causes an infinite loop
2021-07-15 18:01:27 -04:00
takase1121
169b8abae5
fix number of parameters passed to self:move_towards
...
self:move_towards(self) causes self to be passed twice, ignoring rate
2021-07-15 18:01:24 -04:00
takase1121
f4f33bd36b
remove deprecated code
2021-07-15 18:01:24 -04:00
Francesco Abbate
265501bb9e
Fix problem with previous commit
...
Desastrous problem where core.normalize_path was removing the leading /.
2021-07-15 18:01:18 -04:00
Francesco Abbate
e1530c0951
Remove duplicate normalize_path function
...
Use the function defined in the "common" module.
Move the check for not-nil filename from common.normalize_path
to core.open_doc. In this latter the filename can be nil if a
new unnamed document is created.
2021-07-15 18:01:17 -04:00
Adam Harrison
423cd33810
Typo.
2021-07-15 17:58:14 -04:00
Adam Harrison
e539310e6d
Namespace plugin-specific configuration settings.
2021-07-15 17:58:14 -04:00
Adam
d10865bcc4
Merge pull request #303 from jgmdev/treeview-contextmenu
...
Added context menu to treeview.
2021-07-13 22:59:24 -04:00
jgmdev
afa0c175e8
Added delete confirmation using NagView.
2021-07-12 11:41:31 -04:00
jgmdev
a4d5622eda
Make use of core.reschedule_project_scan()
2021-07-11 23:03:33 -04:00
Adam
e1ae94a01b
Merge pull request #318 from lite-xl/MacOSClose
...
Created an extra command, to implement appropriate cmd+w behaviour on Mac.
2021-07-09 14:30:48 -04:00
lqdev
e5b2a7cbe8
reset blink timer when a new cursor is created
2021-07-01 14:50:28 +02:00
Adam
9126b5e64d
Merge pull request #313 from jgmdev/add-system-rmdir
...
Added `system.rmdir(path)`, and `common.rm(path, recursive)`
2021-06-29 17:44:58 -04:00
jgmdev
68459a9199
Added context menu to treeview.
2021-06-28 11:11:49 -04:00
jgmdev
4188269cef
Added system.rmdir(path)
...
It is reported that the built-in lua function os.remove(path) does
not removes empty directories on windows. To fix this a system.rmdir
function is introduced that calls a native win32 function.
Also common.rm(path, recursively) was added which wraps system.rmdir()
to easily delete an entire folder with all its contents.
2021-06-28 11:07:27 -04:00
Adam Harrison
c2c59e9c99
Fixed XDG issue.
2021-06-28 10:44:40 -04:00
Adam Harrison
f899848631
Added in checks so that the entire thing isn't consumed.
2021-06-27 13:27:20 -04:00
Adam Harrison
fd3f25608f
Created an extra command, to implement appropriat cmd+w behaviour on mac.
2021-06-27 13:18:54 -04:00
Adam Harrison
cc568e65fc
Changed over ctrl+w keybinding over to cmd+w, as per #311 .
2021-06-24 18:00:50 -04:00
Adam
83a604dfb7
Merge pull request #296 from lite-xl/font-copy-api
...
Add a C API copy method for font_desc objects
2021-06-24 12:47:16 -04:00
Adam Harrison
f9edca712d
Added in lineguide to core.
2021-06-21 23:21:07 +02:00
Francesco Abbate
1cf0f2009c
Add a C API copy method for font_desc objects
...
Add a renderer.font's method "copy" to clone the font object
by specifying an optional new size. In the size is not given
the size of the original object is used.
Should fulfill the request from issue #288 .
2021-06-21 11:18:52 +02:00
Adam Harrison
8b2fb67b9b
Fixed regex replace.
2021-06-20 22:24:20 -04:00
Adam Harrison
46e939a3e6
Fixed a minor bug.
2021-06-20 21:34:42 -04:00
Adam Harrison
305921299f
Added in tooltips, the ability to swap between different find modes with a keybind.
2021-06-20 21:22:37 -04:00
Adam
2486f253eb
Abstracted out draw caret, so that the line guide can draw under it. ( #287 )
...
* Abstracted out draw caret, so that the line guide can draw under it.
* Moved caret drawing out to draw_overlay.
2021-06-20 22:16:35 +02:00
jgmdev
1a51dad23c
Added Doc:on_close() for plugins
2021-06-20 00:13:07 -04:00
Adam Harrison
bd02095a13
Fixed minor bugs; swap no longer returns from get.
2021-06-18 23:58:55 -04:00
Adam Harrison
704e04396f
Rebased, and added the ability for ctrl to just create new cursors.
2021-06-18 17:33:55 -04:00
Adam Harrison
292c98935c
Fixed recursion error.
2021-06-18 17:33:55 -04:00
Adam Harrison
3541ab4aa1
Removed unecessary check.
2021-06-18 17:33:55 -04:00
Adam Harrison
0210264552
Made get_selections a bit more flexible.
2021-06-18 17:33:55 -04:00
Adam Harrison
b5cbe3a2fb
Added in the ability to iterate through cursors backwards.
2021-06-18 17:33:55 -04:00
Adam Harrison
dfc57bd884
Used routine to add cursors in order correctly.
2021-06-18 17:33:55 -04:00
Adam Harrison
6915d86d59
Introduced the constraint that all cursors must be in order.
2021-06-18 17:33:55 -04:00
Adam Harrison
b065b52067
Ensured that textual inputs sort cursors so that we don't get *real* weird behaviour.
2021-06-18 17:33:55 -04:00
Adam Harrison
0f229b039d
Fixed merging. Fixed selection undo stack.
2021-06-18 17:33:55 -04:00
Adam Harrison
c494d52caf
Used an inappropriate function in a selection loop.
2021-06-18 17:33:55 -04:00
Adam Harrison
d3b3f26316
Added in cursor merging behaviour.
2021-06-18 17:33:55 -04:00
Adam Harrison
c6f7e473f0
That's what I get for not testing after a 'simple' refactor.
2021-06-18 17:33:55 -04:00
Adam Harrison
858f7a2a50
Added in missing boolean.
2021-06-18 17:33:55 -04:00
Adam Harrison
75658b4f3f
Removed unecessary elses.
2021-06-18 17:33:55 -04:00
Adam Harrison
2475b1624f
Fixed error.
2021-06-18 17:33:55 -04:00
Adam Harrison
b42708fe56
Cleaned up functions.
2021-06-18 17:33:55 -04:00
Adam Harrison
316671e5b7
Fixed tabbing spaces.
2021-06-18 17:33:55 -04:00
Adam Harrison
6c0d124410
Allows for rectangular selections with ctrl; also fixed tabbing.
2021-06-18 17:33:55 -04:00
Adam Harrison
08ab6cba05
Added in multiple clipboard line buffers.
2021-06-18 17:33:55 -04:00
Adam Harrison
a7f39017ff
Fixed undo stack.
2021-06-18 17:33:55 -04:00
Adam Harrison
93670a314d
Changed iterator behaviour to avoid allocating a closure each time.
2021-06-18 17:33:55 -04:00
Adam Harrison
37a3884ee2
Initial commit of multicursor. Next step is to investigate how multicursor works on various other IDEs and ape those.
2021-06-18 17:33:55 -04:00
cukmekerb
e493fa1b0a
clicking the empty space where the x was no longer closes the tab
2021-06-17 21:15:30 -07:00
cukmekerb
e1d85af69b
added config.tab_close_button option to hide X on tabs
2021-06-17 18:35:36 -07:00
jgmdev
e9e1214e59
[plugin/scale] fixed wrong increase and decrease
...
If the user manually set the desired scale by calling scale.set(1.60)
the scale_level was not set accordingly which meant that later doing
a Scale:Increase/Decrease command yielded incorrect scale amount.
2021-06-17 20:58:22 -04:00
Adam
5151e36981
Added in the ability to customize the config directory used with the environment variable XDG_CONFIG_HOME. ( #271 )
2021-06-17 23:15:08 +02:00
Adam
bdc37f1f6c
Added in remove file function. ( #272 )
...
* Added in remove file function.
* Changed namespace of rename and remove (now delete).
2021-06-17 22:26:27 +02:00
Francesco Abbate
1ad4289e76
Do not try to update topdir folder in treeview
...
If the directory expanded is a project's top directory
do not attempt to update its content.
Fix again issue #275
2021-06-17 19:07:32 +02:00
Francesco Abbate
4c9083398a
Fix error in dirname computation in TreeView
...
In TreeView:on_mouse_pressed() we need to find the directory a
relative filename belongs to from its absolute filename.
The code was using string.find to locate the relative filename
within the absolute path but in some very specific cases we can
find a pattern which is not the right-most one leading to a
wrong directory name.
Fix the error by adding a loop to make sure we find the right-most
match. The standard Lua library has not a string.rfind to make a
reverse search.
Close #275
2021-06-17 18:23:30 +02:00
Francesco Abbate
b39db791f9
Do not duplicate RootView method in contextmenu
...
The method RootView:on_mouse_pressed was copied in the contextmenu plugin with
a small modification to intercept the mouse clicks of the active view.
This approach is problematic because a relatively large portion of code is
duplicated.
We introduced a function named RootView.on_view_mouse_pressed to let plugins
like contextmenu intercepts mouse clicks in the active area without duplicating
the function RootView:on_mouse_pressed.
2021-06-17 10:22:31 +02:00
Adam Harrison
2fc245eb69
Added in an interface to the scale plugin.
2021-06-14 20:33:15 -04:00
Adam Harrison
aed643893e
Fixed contextmenu to play nice with dragging nodes.
2021-06-14 09:23:04 -04:00
jgmdev
e070dbebc1
Fix undeclared NagView findindex() by moving it to common.
2021-06-13 21:28:29 -04:00
Francesco
98164f6d4f
Integrate mkdirp function in common module ( #265 )
...
Move the function mkdirp into common to be generally available.
Use the new common.mkdirp from create_user_directory() from
core/init.lua replacing previous parent directory creation code
within the function.
The previous mkdirp function did not work on Windows where
absolute paths starts with a drive letter. The code from
create_user_directory() did not have this problem but was wrong
in the way it was creating the nested directories.
The new implementation in common.mkdirp fix both problems.
2021-06-13 19:50:42 +02:00
Jefferson González
9823da8531
Merge pull request #267 from jgmdev/nagview-fix
...
Added missing NagView dialog commands to startup.
2021-06-12 23:14:17 -04:00
Adam Harrison
66b76f15c2
Added a check for duplicate tabs, also ensured that the appropriate view is set as active.
2021-06-12 14:24:31 -04:00
Adam Harrison
a18eeafbc8
Added in some more checks.
2021-06-12 13:43:58 -04:00
Adam Harrison
f729d7d008
Allows you to drag nodes around splits.
2021-06-12 13:43:58 -04:00
Francesco Abbate
752ecd5ece
Group mouse move events from C API function
...
Groups together consecutive mouse move events like done in core.step()
lua function but on the C side.
It does not introduce any meaningful speedup but it theory is more efficient and
simplifies the Lua code.
The simplification of the Lua code alone is enough to justify this change?
2021-06-11 15:00:18 +02:00
jgmdev
9153f5695d
Added missing NagView dialog commands to startup.
2021-06-09 20:13:23 -04:00
Björn Buckwalter
702ab2625c
MacOS modifier key adjustment (replace `alt`) per #262 ( #263 )
...
* Use `cmd` as modifier key for tab seletion (macos)
Part of #262 .
* Use `cmd+shift` instead of `alt` on macos
Fixes #262 .
2021-06-09 20:23:40 +02:00
Björn Buckwalter
ef48d5d48c
Use `ctrl` for next tab on macos
...
Fixes #261 .
2021-06-08 16:13:00 +02:00
Francesco Abbate
e7d0709828
Fix error in workspace file error reporting
2021-06-08 12:06:54 +02:00
Jefferson González
b4896ed69e
[plugin/contextmenu] Append itemsets that where registered. ( #258 )
2021-06-07 23:29:03 +02:00
Takase
0fd1fa8872
Commands refactor ( #257 )
...
* remove unecessary check
* move command registration to core/commands
2021-06-07 23:00:29 +02:00
Takase
130b29438a
Allow creation of nested directories ( #254 )
...
* allow nested directories to be created
* fix / be turned into //
* refactor error handling
* refactor path splitting and mkdir calls
If a path exists it will now return immediately.
* fix typo
* remove possible trailing empty string
* fix bugs with path check
2021-06-07 22:44:35 +02:00
Adam Harrison
2170ab9649
Apologies for the subpar previous commit. This fixes the bugs in that one.
2021-06-05 00:50:25 -04:00
Adam Harrison
090d67f252
Exposed indent function, and made it more flexible.
2021-06-05 00:44:35 -04:00
Adam Harrison
3b816a2b4a
Changed regex error handling, so that errors can be handled gracefully in lua, and made it so gsub returns the exact matches and replacements.
2021-06-04 23:58:17 -04:00
takase1121
cd5c64fe8c
prevent mouse movement from propagating when context menu is open
2021-06-05 08:51:17 +08:00
takase1121
794cf3813a
export context menu
2021-06-05 08:47:32 +08:00
Francesco Abbate
c5acd030a1
Do not save log views in session file
2021-06-04 14:42:08 +02:00
Francesco Abbate
29e25a7605
Do not show empty documents when restoring session
...
When a filename cannot be read when restoring a session do
not create a document. Previous behavior was to create an empty
"unsaved" document.
2021-06-04 14:05:54 +02:00
Francesco
b046afccf9
Scale fonts context menu ( #246 )
...
* Retrieve scale plugin from lite-plugins
* New implementation of scale plugin and font C API
Introduce two new C API functions, renderer.font.get_size and set_size
respectively to get the font size and to set the size to a new value.
Using these functions we don't need to know the name of the font but
we can just change their size.
Adapt the scale plugin to use the new C API function with minor adaptations
in the logic.
Use smaller step to scale fonts.
Rename font_desc_free function, previous name was misleading as only the cached
resources are freed.
* Add contextmenu plugin from takase
From https://github.com/takase1121/lite-contextmenu
Adapted to show font scaling commands and find/replace commands.
i# testing.lua
* Fix the cursor flickering with contextmenu
To avoid flickering of the cursor when using the context menu
we add a new function `core.request_cursor` that just take note
of the cursor requested.
The cursor will be actually changed only in root_view:draw() method
only when all the drawing operations are done. This means the cursor
will be changed only once per frame and only the most recent cursor
change request will take effect.
* Remove unneeded scale plugin return functions
2021-06-03 22:49:37 +02:00
Adam
248d70a8ca
Add PCRE to support regular expressions
...
Use regular expressions instead of Lua patterns for find and replace editor commands.
Syntax files can now use regex or Lua patterns as before keeping backward compatibility for plugins.
2021-06-02 21:27:00 +02:00
lqdev
ea5e9b0ce5
fixed broken Doc:save monkeypatch
2021-06-02 19:11:59 +02:00
Francesco Abbate
4e93eabbac
Deprecate core.add_save_hook to override Doc:save
...
In order to stay simple and closer to the lite's design principles we
deprecate the core.add_save_hook function and the related mechanism.
Instead we now directly override the Doc:save() method.
The method is already overrided from core.init to add the automatic
reloading of style when user's module is saved.
The cleanup is related to the discussion in issue #229 .
2021-05-31 09:41:37 +02:00
Francesco Abbate
6d044224c1
Starts maximized only if it was in previous session
2021-05-28 16:35:25 +02:00
Francesco Abbate
f7e3e41ab1
Fix problem with mouse cursor over dividers
2021-05-28 15:35:46 +02:00
redtide
818a7abb0a
Avoid to restore window size when maximized ( #226 )
2021-05-28 08:51:39 +02:00
Adam
4ffb5e3672
Fixed commenting and uncommenting. ( #224 )
2021-05-28 08:17:49 +02:00
Francesco Abbate
34e38dd04a
Fix missing check for filename when saving a file
...
Close #225
2021-05-27 18:53:31 +02:00
Francesco Abbate
ee25e3c5f4
Reduce number of used lines in detectindent
2021-05-27 16:25:49 +02:00
Francesco Abbate
0a55b246b5
Use thread in detectindent plugin
2021-05-27 16:25:49 +02:00
Francesco Abbate
ad7d17caca
Use FiraSans regular for UI
2021-05-27 13:49:33 +02:00
Francesco Abbate
fe828b6ed9
Update changelog and release number
2021-05-27 13:46:51 +02:00
Francesco Abbate
934f12cded
Fix bug with titleview close button not working
...
The bug was actually due to a presence of a ghost tab scrolling button
in all the views.
We need to check if the node has multiple views, if not there are no tabs
and therefore no scrolling button areas so we return nothing from the
method Node:get_scroll_button_index().
Close #216
2021-05-27 09:02:19 +02:00
Janis-Leuenberger
1394c53dbc
Improve user feedback for big directories ( #223 )
2021-05-27 08:28:58 +02:00
Adam Harrison
f1a4bf8218
Changed to multiline select.
2021-05-26 17:52:01 -04:00
liquidev
cb610055d0
support for font changing in the syntax highlighter
2021-05-26 19:16:56 +02:00
Francesco Abbate
10fde6e264
Implement lazy loading of directories
...
When the number of files in a project directory is above the max
limit switch back to a mechanism to read directory content only
when the corresponding folder is expanded in the treeview.
When the command core:find-file is invoked the command core:open-file
is executed instead because the complete list of the project's
files is not available.
When a project search is done we search through all the files within
the project dir without indexing them.
Address issues #217 #203 #183 .
2021-05-26 14:22:10 +02:00
Adam Harrison
8acb3fae8c
Fixed minor error that occurs when saving as after viewing a non-doc tab.
2021-05-24 17:26:16 -04:00
Francesco Abbate
f17f5a4d6d
Fix problem with filenames missing normalization
2021-05-24 15:58:49 +02:00
Francesco Abbate
739763675e
Check the real absolute path of user module
...
Close issue #212
2021-05-22 23:32:45 +02:00
Francesco Abbate
217360ed31
Switch to FiraSans and JetBrainsMono fonts
2021-05-22 15:09:54 +02:00
Adam
a254d393db
Indent Enhancements ( #202 )
...
* Indent enhancements.
* Fixed to match style guidelines.
* Added in useful explanatory comment.
* Changed which selection we're using, as we don't want this kind of wrapping to happen.
* Fixed bug involving lines full of whitespace.
* Removed unecessary commit.
* Actually reverted function, so that we don't screw up commenting.
* Fixed hard tab issue.
2021-05-22 15:01:19 +02:00
Francesco Abbate
abc69a7a19
Prepare release 1.16.10
2021-05-22 14:55:58 +02:00
Adam
949692860e
Tokenizer cleanup ( #198 )
...
* Cleaned up tokenizer to make subsyntax operations more clear.
* Explanatory comments.
* Made it so push_subsyntax could be safely called elsewhere.
* Unified terminology.
* Minor bug fix.
* State is an incredibly vaguely named variable. Changed convention to represent what it actually is.
* Also changed function name.
* Fixed bug.
2021-05-20 21:58:27 +02:00
liquidev
78999cabe2
Improved Lua syntax ( #201 )
...
* improved Lua syntax
* added some missing cases with number literals
2021-05-20 19:02:40 +02:00
Francesco Abbate
a02691f18e
Merge topic branch for tabs scrolling buttons
2021-05-19 22:59:29 +02:00
Adam
b278306fc9
Changed deindent, so that if the deindent runs into an unusual line with a partial indent at the front, it'll still de-indent that. ( #193 )
2021-05-19 22:41:28 +02:00
liquidev
86a7037ed9
support for multiple groups in one pattern ( #196 )
2021-05-19 22:35:28 +02:00
Francesco Abbate
a92d15fe30
Use all the available space for tabs
...
Use a tab's width larger than style.tab_width if there is enough
available space to display the number of tabs specified in
config.max_tabs.
2021-05-19 10:09:40 +02:00
lqdev
ba4fbde33d
fixed mixed indentation
2021-05-18 17:52:18 +02:00
Francesco Abbate
1fb01f36df
Avoid overflowing tab rectangles when animating
2021-05-17 15:11:06 +02:00
Francesco Abbate
13529c28d4
Cosmetic variable name change
2021-05-17 13:37:05 +02:00
Francesco Abbate
ba40bc0dfc
Final adjustments to tab's rect computations
2021-05-17 12:14:01 +02:00
Francesco Abbate
92322986b8
Fix error with previous commit
...
Error was introduced with PR:
https://github.com/franko/lite-xl/pull/190
2021-05-17 10:16:55 +02:00
Adam
6e08c3321c
Fixed a bug where if detectindent is paired with another plugin that hooks the event, it'll overwrite the other plugin's functions. ( #190 )
2021-05-17 10:05:08 +02:00
Adam
e43f1b9df9
Unified open and saving style. ( #189 )
2021-05-17 09:29:51 +02:00
Adam
85d0d684de
Truncated lines longer than 256 characters, and skipped to the relevant portion of the line to reduce slowdown and increase relevancy. ( #185 )
2021-05-17 09:16:20 +02:00
Adam
e54ffc49ea
Added in keyboard shortcuts to the project search module. ( #188 )
2021-05-17 09:14:46 +02:00
Cukmekerb
bd4efa14a2
add `of` keyword to language_js.lua and improve js string syntax highlighting in ( #186 )
2021-05-17 08:56:21 +02:00
Adam
c7b1a6f53e
Allowed for optional boolean to better match filenames. ( #180 )
2021-05-16 19:23:17 +02:00
Francesco Abbate
b37c190db2
Add buttons to scroll tabs when there are too many
...
Use config.max_tabs to configure the maximum number of tabs that can
be shown. Beyond the maximum value scroll buttons will appear to scroll
the tabs.
2021-05-16 15:50:27 +02:00
Francesco Abbate
90e41daa99
Add tab animation and improve hovering update
...
Always update the tab hovering status using the Node:update
method. Previous behavior was to update only on mouse moved
events.
2021-05-15 16:57:20 +02:00
Francesco Abbate
b223dbca6f
Use unicode ellipsis to truncate tab's text
...
For proportional fonts is equivalent to three dots but it makes a
lot of difference for monospaced fonts.
2021-05-15 16:27:29 +02:00
Francesco Abbate
f30dfc20fe
More accurate tab width calculation
...
Ensure the right side of the right-most tab always end up at the
same position.
2021-05-15 16:26:15 +02:00
Francesco Abbate
50a4fc212f
Do not truncate filenames in tab and use dots
2021-05-15 14:49:16 +02:00
Francesco Abbate
e2fcc41b4a
Ensure tabs don't extend beyond window's width
2021-05-15 14:17:36 +02:00
Francesco Abbate
e58d7600ee
Prepare release 1.16.9
2021-05-06 17:08:56 +02:00
tsukanov-as
f637dc4db8
Fix creating a new file ( #179 )
2021-05-06 16:53:46 +02:00
Francesco Abbate
55a6888818
Fix resizing problem for nested nodes
...
Should fix problem reported in:
https://github.com/drmargarido/TodoTreeView/issues/3
2021-05-06 15:35:40 +02:00
Francesco Abbate
5cef643e02
Introduce new plugin versioning tag mod-version
...
New plugins should use the version tag:
-- mod-version: 1
The old version tag "-- lite-xl 1.16" will be considerer equivalent
to mod-version 1.
2021-05-05 22:38:29 +02:00
Adam
135dfa6f03
Add a more explicit message in log and config.max_project_files
...
* Added a line to avoid people going down the rabbit hole that I did.
* Further explanatory text.
2021-05-05 16:00:17 +02:00
Francesco Abbate
9f7f55926b
Use home_encode when setting window title to filename
2021-05-05 10:35:19 +02:00
Francesco Abbate
d63afe02ed
Use string.find only in common.home_encode
...
Should be slightly more efficient.
2021-05-05 10:34:48 +02:00
Francesco Abbate
820d520fc3
Store doc's babs_filename without home encoding
...
This is the way was supposed to be. All the filenames are supposed to be
stored without home encoding, i.e. with explicit paths.
Should fix issue #177 and make PR
https://github.com/franko/lite-xl/pull/174
unneeded.
It may also address issue #174 but would need further verifications.
2021-05-05 08:52:14 +02:00
Adam
4c42dd4adc
Do not close command view on open-file is file is invalid or it is a directory
...
Added in a validation function which fires before submitting a command enter; found it incredibly irritating to try to open something, hit enter, only to be told I'd selected a directory, and then have to go through the whole process again. (#175 )
2021-05-05 08:04:51 +02:00
Adam
67ec7e8065
Added in drag and drop capability. ( #170 )
2021-05-02 09:13:21 +02:00
Francesco Abbate
b42d9de0be
Prepare 1.16.7 release
2021-05-01 23:18:16 +02:00
Adam
e4da235f7e
Made it so that you can continue clicking and still select things. ( #166 )
2021-05-01 22:32:50 +02:00
Adam
dd604c1336
Nil check, to avoid issues for files that don't have filenames yet (new files, etc..) ( #169 )
2021-05-01 22:25:39 +02:00
Adam Harrison
b69242312d
Changed HTML plugin to have case insensitive matching of script and style tags.
2021-05-01 14:52:39 -04:00
Francesco Abbate
1a05e00fdd
Fix detection of user file module
...
Close #54
2021-05-01 19:27:29 +02:00
Francesco Abbate
e6d88909a8
Fix log message about project dir
2021-05-01 19:27:29 +02:00
Francesco Abbate
5766329313
Fix filename problem
...
Close #163
2021-05-01 19:27:29 +02:00
Francesco Abbate
857807b23a
Use ab filename as initial text for open file command
2021-05-01 19:27:29 +02:00
adamharrison
3fe6665b9a
Nested Syntax Highlighting ( #160 )
2021-05-01 11:45:30 +02:00
adamharrison
2e7817f609
Use the active view's filename when opening a file
2021-04-25 20:58:56 +02:00
lqdev
c859498d68
check version in init.lua within directory plugins
2021-04-25 19:14:36 +02:00
lqdev
34e94bb8aa
fixed versioning, again
2021-04-25 12:35:00 +02:00
lqdev
5e8e2f54b5
directories should not be loaded
2021-04-25 11:45:08 +02:00
Francesco Abbate
dd9b4f06ab
Fix keymap binding on macos
2021-04-21 01:42:56 -07:00
Francesco Abbate
9d9c7f291c
Make control to cmd translate on macos automatic
2021-04-21 10:16:51 +02:00
Francesco Abbate
80192573da
Add macos keybindings
...
Thanks to @mathewmariani, modifications taken from his lite-macos repository
2021-04-21 09:48:30 +02:00
Francesco Abbate
f50728bf18
New version tag
2021-04-21 09:05:51 +02:00
Francesco Abbate
2c8e723c6d
Disable borderless window by default
2021-04-21 09:05:15 +02:00
Francesco Abbate
8bcace1d59
Merge remote-tracking branch 'origin/border-less-window'
2021-04-21 08:42:57 +02:00
Francesco Abbate
53f77a29ea
Implement correctly loading from macos bundle resources
2021-04-18 08:51:31 -07:00
Francesco Abbate
032018ec48
More aggressive wait_event timeout when window has focus
...
Adopt a time based logic for cursor blinking and wait for event
when idle with a timeout equal to blink remaining time.
2021-04-17 14:57:28 -07:00
Francesco Abbate
f7375924ab
Make non-borderless mode work
2021-04-12 19:05:30 +02:00
Francesco Abbate
4de97d51fb
Avoid always calling system.get_window_mode
2021-04-12 13:31:32 +02:00
Francesco Abbate
46791aefe5
Implement maximize/restore controls
...
Remove also resize from top and right of the window
2021-04-12 11:54:52 +02:00
Francesco Abbate
a1b3266d42
Improve language CSS color literal pattern
...
Close #123
2021-04-12 11:21:00 +02:00
Francesco Abbate
67dc16ad26
Make windows control buttons active
2021-04-11 23:52:31 +02:00
Francesco Abbate
8ad87d77da
Add correct hit-test information and menu icon
2021-04-11 15:08:25 +02:00
Francesco Abbate
7531a0ddc8
Preliminary implementation of border-less mode
...
Not yet functional but most ingredients are there
2021-04-10 19:35:57 +02:00
Francesco Abbate
f250adcda1
Implement multi-lines for NagView
...
Related to issue #147
2021-04-07 23:46:45 +02:00
Francesco Abbate
119f406d3c
Add NagView message for refused plugins
2021-04-07 09:42:19 +02:00
Francesco Abbate
d7cc1f9f9d
Add plugin verification by version tag
2021-04-06 17:50:46 +02:00
Francesco Abbate
6e3cd41bd1
Logical test simplification in detectindent
2021-04-06 08:27:35 +02:00
Francesco Abbate
3721ace099
Fix logical error in on_text_change
2021-04-06 08:26:53 +02:00
Francesco Abbate
e43c980e4a
Simplifies previous commit
...
Restore the previous signature of raw_insert/remove
2021-04-06 08:18:35 +02:00
Francesco Abbate
d1984942ea
Add hook function for Doc changes
2021-04-05 00:11:56 +02:00
Takase
63b9cf223e
NagView improvements ( #136 )
...
Implement keyboard commands for the NagView.
2021-04-04 16:11:47 +02:00
Francesco Abbate
3b040aabc7
Implement unicode character replacements
...
Useful to draw whitespaces with alternate characters and colors
without slowing down the text rendering.
A new API is implemented. A renderer.replacements object can be created
to list the replacements.
In turns the function renderer.draw_text and draw_text_subpixel now accept
two optional arguments for replacements.
2021-04-01 18:05:59 +02:00
Francesco Abbate
15a4985065
Prepare release 1.16.5
2021-03-20 22:31:45 +01:00
Francesco Abbate
60fa7d07ba
Prepare 1.16.4 release
2021-03-20 17:10:27 +01:00
Francesco Abbate
f9115751b4
Minor simplification of animation rate adjustment
2021-03-20 17:00:43 +01:00
Francesco Abbate
7f50df6a2f
Ensure plugin within a directory are loaded
...
Close #118
2021-03-20 16:34:00 +01:00
takase1121
5e8444b2b1
rename tooltip_alpha_step to tooltip_alpha_rate
2021-03-20 01:04:07 +00:00
takase1121
93753634f5
set delay to 0.5 and disable animation
2021-03-20 01:03:16 +00:00
takase1121
cdf5b9b9b8
show tooltips only when hovering over text
2021-03-20 00:57:06 +00:00
takase1121
d191e8ee34
prevent rendering tooltip when alpha is 0
2021-03-20 00:28:49 +00:00
Francesco Abbate
26ec9e5820
Compute animation rate only if needed
2021-03-18 16:20:21 +01:00
Takase
0bb7f21dd7
tooltip enhancements ( #114 )
...
Add a delay to show the tooltip and other improvements.
2021-03-18 16:18:36 +01:00
Francesco Abbate
04063ff47e
Fix error introduced with commit c0ad86d
2021-03-18 15:46:44 +01:00
Francesco Abbate
88bec172a1
Fix problem with tab size and subpixel positioning
...
Solve github issue https://github.com/franko/lite-xl/issues/109
2021-03-18 13:54:33 +01:00
takase1121
1f97805321
normalize tooltip filename to home dir
2021-03-14 03:09:18 +00:00
Takase
13ebb51c38
add tooltips to treeview.lua ( #100 )
2021-03-13 16:44:40 +01:00
Takase
c0ad86de8c
integrate NagView
2021-03-13 12:57:52 +01:00
liquidev
844ecd1f26
Make animation speed independent of config.fps, add config.animation_rate to fine-tune animation speed ( #93 )
...
* animation rate config field
* @franko's math magic to make it look more correct
2021-03-10 16:35:37 +01:00
liquidev
3af6af654b
more stylish tabs ( #95 )
2021-03-09 14:24:14 +01:00
Francesco Abbate
b612357371
Bump new version number
2021-03-07 18:47:15 +01:00
Francesco Abbate
baf5aebe1c
Merge remote-tracking branch 'origin/master' into subpixel-font-positioning-fix
2021-03-07 12:25:53 +01:00
Francesco Abbate
23a053e1ee
Ensure error and stack trace are written to stdout
...
To address https://github.com/franko/lite-xl/issues/87
2021-03-07 09:48:44 +01:00
Francesco Abbate
199476547b
Fix error related to panes resize along y
2021-03-06 23:50:19 +01:00
Francesco Abbate
991db14877
Ensure filename are store relative to project directory
2021-03-06 23:49:20 +01:00
Francesco Abbate
5bf7abf23d
Ensure filename are store relative to project directory
2021-03-06 23:36:05 +01:00
Francesco Abbate
087c8ba402
Fix error related to panes resize along y
2021-03-06 23:05:04 +01:00
Francesco Abbate
3426bc5d73
Introduce subpixel text positioning within rencache
...
In order to fix the issue with cursor positioning a subpixel-aware draw
text operation within rencache was required.
With this modification the cursor positioning problem is completely
resolved.
A new function renderer.draw_text_subpixel is introduced to perform
consecutive, inline, text drawings with subpixel accuracy.
2021-03-06 18:12:02 +01:00
Francesco Abbate
9ff6a0325e
Mostly fix problem of offset with cursor positioning when using mouse
...
In order to get right the cursor position on text on mouse clicks it is
needed to take into account text's subpixel positioning.
This fix mostly corrects the problem but cursor positioning is still
somewhat inaccurate for long lines due to repeated commands to draw a text
along a line. Repeated draw text calls make the subpixel information
lost and small errors will add-up.
2021-03-06 16:18:24 +01:00
daubaris
0cb594aaf2
Enable customizing cursor speed ( #80 )
...
Addresses issue #65
2021-03-06 11:03:12 +01:00
Francesco Abbate
aa1408c01f
Do not assume doc.indent_info is present
2021-03-05 23:47:36 +01:00
Francesco Abbate
09332fe242
Fix problem with fatal error message
...
Previous implementation was broken.
Ensure the error file is always written and write its location in the error message
2021-03-05 23:46:41 +01:00
Francesco Abbate
877e4ac6e2
Bump new version
2021-03-05 11:33:29 +01:00
Francesco Abbate
a4bc8986ff
Implement fatal error message box
...
Used when lite-xl fails at startup
2021-03-05 10:33:50 +01:00
Francesco Abbate
3506ff47fc
Fix problem with plugin loading
...
Introduced with PR https://github.com/franko/lite-xl/pull/73
2021-03-05 07:22:56 +01:00
Francesco Abbate
de13762085
Show complete tab name when close butto is not there
2021-03-03 18:48:41 +01:00
liquidev
2e1a6ad5d1
Fix #30 – user plugins take priority over built-in plugins ( #73 )
...
user plugins should take priority over stock plugins
2021-03-03 12:20:22 +01:00
Francesco Abbate
8883685eea
Fix font size in initial user's config
2021-03-01 09:48:12 +01:00
Francesco Abbate
c0942bbde7
Use slightly larget font for UI
2021-02-28 23:44:35 +01:00
Francesco Abbate
75eadf4dc7
Simplifies logic for suggestion's offset
2021-02-28 23:24:19 +01:00
Francesco Abbate
e46800347f
Implement scrolling in command view
2021-02-28 19:52:38 +01:00
Francesco Abbate
a35ef764a0
Show Lite XL instead of lite in window's title
2021-02-28 18:55:05 +01:00
Francesco Abbate
6c84913f6a
Do not set window's title to unsaved for command view
2021-02-28 18:54:32 +01:00
Francesco Abbate
bd2d8db231
Draw divider for inactive tabs
2021-02-27 23:56:11 +01:00
Francesco Abbate
f708a53a04
Keep active view when closing inactive tabs
2021-02-27 23:55:36 +01:00
Francesco Abbate
4d320c1946
Ensure treeview is large enough to show toolbar
2021-02-27 19:39:56 +01:00
Francesco Abbate
e861ea1d66
Ensure tab's text and close button don't overlaps
2021-02-27 17:19:47 +01:00
Francesco Abbate
4cda8fc122
Show tab close button when hovering inactive tabs
2021-02-27 15:29:18 +01:00
Francesco Abbate
ca6d1843bc
Implement close button for tabs
2021-02-27 13:53:52 +01:00
Francesco Abbate
0dc18de6bc
Add information about icon_big_font in initial user's configuration
2021-02-27 12:13:51 +01:00
Francesco Abbate
4d734e933c
Fix resize behavior of treeview and toolbar
...
Now toolbarview always compute up-to-date sizes and spacing to adapt to
changes in icon big font.
For treeview and toolbarview revert the goto_size approach to use the
original approach of rxi/lite. In order to make it work when user resizes
dragging the divider we use the view optional method set_target_size().
This latter changes the view's target size instead of changing its size
right away. The size is only changed by the lite's layout and animation
system.
Remove the config.treeview_size variable that was no longer working because
plugins are loaded before the user's config.
2021-02-27 12:13:11 +01:00
Francesco Abbate
af0be4abf1
Update changelog and version
2021-02-25 09:37:06 +01:00
Francesco
0f789cd6a2
Merge pull request #63 from eugenpt/master
...
+js language regexp pattern
2021-02-24 20:21:44 +00:00
Francesco Abbate
94b99b658e
Fix multi-line commands
...
When second position is at the beginning of a line do not include this latter.
2021-02-24 18:06:47 +01:00
Francesco Abbate
cbb42d0028
Fix spacing in treeview
...
Previous setting was not okay with monospaced fonts
2021-02-24 17:50:34 +01:00
Francesco Abbate
351a772466
do not use 'portable' as a compile time option
...
Introduce the file core/start.lua to initialize applications variables
2021-02-24 16:29:39 +01:00
ep
b616b55fd9
+js language regexp pattern
2021-02-24 12:24:43 +07:00
Francesco Abbate
22de3354ce
Minor toobar tooltip adjustment
2021-02-21 12:57:42 +01:00
Francesco Abbate
fc46946ea1
Fix the flashing tooltip issue
2021-02-21 11:09:51 +01:00
Francesco Abbate
2353076b37
Add config.transitions to enable/disable transitions
2021-02-21 11:08:25 +01:00
Francesco Abbate
7a35e7c217
Don't show partially hidden icons in toolbar
2021-02-21 09:43:47 +01:00
Francesco Abbate
5e0dee3e18
Fix indent spaces/tabs labeling
2021-02-20 22:56:52 +01:00
Francesco Abbate
22c9628def
Fix missing info icon
...
Github issue: https://github.com/franko/lite-xl/issues/45
2021-02-20 20:15:09 +01:00
Francesco Abbate
cf6332aebc
Fix tooltip from ghost toolbar
...
Github issue: https://github.com/franko/lite-xl/issues/48
2021-02-20 20:14:24 +01:00
Francesco Abbate
054350263d
Fix treeview missing clamp bug
...
Github issue: https://github.com/franko/lite-xl/issues/44
2021-02-20 20:13:25 +01:00
Francesco Abbate
4f2e38d41f
Make code and ui font smaller at 12
2021-02-19 16:23:19 +01:00
Francesco Abbate
688dc1a7b8
Do not log every plugin load
...
Since we now load the user's module before the plugins\nwe avoid to log a line for each loaded plugin to not hide\nan eventual error in the user module
2021-02-19 16:12:56 +01:00
Francesco Abbate
68d9794926
Adjust default code font size
...
The previous value looks too big in hidpi screens
2021-02-19 16:10:57 +01:00
Francesco Abbate
76b463bd11
Create empty fonts directory in USERDIR
2021-02-19 16:10:02 +01:00
Francesco Abbate
0233941fe9
Bump version number
2021-02-19 13:54:10 +01:00
Francesco Abbate
2a0846b604
Automatic keep adjusting indent size
...
When too few lines keep adjusting indent size
2021-02-19 11:51:49 +01:00
Francesco Abbate
ef24828307
Add toolbar tooltips
2021-02-19 11:50:20 +01:00
Francesco Abbate
335d704cab
New fontello font smaller plus two new icons
2021-02-19 10:12:43 +01:00
Francesco Abbate
e463ba8959
Add new toolbar buttons and tips
2021-02-19 10:08:45 +01:00
Francesco Abbate
6353fde609
Move user module loading before plugins
...
Otherwise the configuration to disable a plugin does not take effect.
2021-02-19 10:08:03 +01:00
Francesco Abbate
114f6b2481
Do not print error on standard output
...
Delayed error when passing invalid directory argument.
2021-02-19 09:29:46 +01:00
Francesco Abbate
6fcdafc5b6
Adjust line numbers for detect indent
2021-02-19 09:23:55 +01:00
Francesco Abbate
ba68d6db24
Improve error handling for directory arguments
2021-02-19 00:15:55 +01:00
Francesco Abbate
52fb5afe34
Improve detectindent to skip comments
2021-02-18 10:10:06 +01:00
Francesco Abbate
a2c4fdf649
Normalize global PATH from core.init
2021-02-18 09:02:57 +01:00
Francesco Abbate
de1afb3391
Add full filename path in window's title
...
Optimal implementation to limite computations in core.step.
2021-02-18 00:26:19 +01:00
Francesco Abbate
59fbf9cfc0
Merge branch 'master' into dev
2021-02-17 23:57:02 +01:00
Francesco Abbate
9b27180267
Use doc on_save hooks to reload user module
2021-02-17 20:10:39 +01:00
Francesco Abbate
1ce1c114ba
Fix reload module problem on windows
2021-02-17 19:20:00 +01:00
Francesco Abbate
6369a7f760
Use tilde expansion when running save-as command
2021-02-16 22:54:00 +01:00
Francesco
1decf67b64
Merge pull request #34 from budRich/user-module-auto-reload2
...
User module auto reload
2021-02-16 20:52:06 +00:00
bud
63b024cb81
FIX: Use PATHSEP instead of hardcoded "/" path separator
2021-02-16 19:25:40 +01:00
bud
4917be3daf
remove config for window title format
2021-02-16 19:13:41 +01:00
bud
3693556958
FIX: get DocView in init instead of step, remove option for window title format'
2021-02-16 19:12:56 +01:00
Francesco Abbate
9fced84a7a
Move VERSION variable into Lua code
...
To avoid recreating binaries if there are no changes
in the C side of the source code.
2021-02-16 14:35:02 +01:00
Francesco Abbate
d18b90ad4f
Restore original key binding for trreview toggle
2021-02-16 09:41:03 +01:00
bud
dd30725d84
FIX: before setting full path to window title, make sure activeView is DocView
2021-02-15 22:38:29 +01:00
bud
b9fcb6e5ae
ADD: test in doc:save(), if the file is the user module, automatically reload config
2021-02-15 22:09:25 +01:00
bud
cc9aa23340
REMOVE: dont add reload on save hook in core:open-user-module, its automatically done in doc:save()
2021-02-15 22:09:06 +01:00
bud
7e3eb4a408
ADD: default value (false) for full_path_in_window_title
2021-02-15 21:06:03 +01:00
bud
436446dd9a
ADD: in core.step() show full path if view is a document and config.full_path_in_window_title is true
2021-02-15 21:05:06 +01:00
Francesco Abbate
680058547d
Replace icons font with new fontello font
2021-02-15 15:49:33 +01:00
Francesco Abbate
c20aff2307
Adding final details for toolbarview plugin
2021-02-15 15:45:56 +01:00
Francesco Abbate
ebba21310b
Fix treesize toggle command and transition
2021-02-15 12:18:43 +01:00
Francesco Abbate
b836c2e1e6
Implement proper layout of toolbar
2021-02-15 00:36:39 +01:00
Francesco Abbate
5851a04098
Add hover and click functions for toolbar
2021-02-13 18:29:08 +01:00
Francesco Abbate
2765cbd92b
Show a dummy toolbar
...
Does not do anything for the moment
2021-02-12 15:54:11 +01:00
Francesco Abbate
7137f88b4c
Start working in toolbar
2021-02-11 18:37:34 +01:00
Francesco Abbate
9f0abd1a8b
Show resize cursor only when panes are resizable
2021-02-11 17:15:27 +01:00
Francesco Abbate
f482ea318a
Makes resizable attribute explicit in Node:split()
2021-02-11 16:12:21 +01:00
Francesco Abbate
c6a1323214
More accurate implementation for x and y axis
2021-02-11 11:53:53 +01:00
Francesco Abbate
e69d201e1b
First preliminary implementation of treeview resize
...
Works but only cover resize along x.
2021-02-09 18:41:32 +01:00
Francesco Abbate
a8c810d801
Merge remote-tracking branch 'origin/master' into dev
2021-02-09 18:39:39 +01:00
Francesco Abbate
3d8cf22933
Fix error with previous commit
2021-02-05 15:36:48 +01:00
Francesco Abbate
03818d13fd
Fix error when using relative dir argument
2021-02-03 07:39:35 +01:00
B14CK313
65c7f666aa
Fixed path returned by temp_filename not writeable
...
The path returned by temp_filename was not writeable on UNIX (and possibly other OS). This lead to the gitstatus plugin not working.
The proposed change fixes this by using the USERDIR variable instead of EXEDIR
2021-01-22 02:10:24 +01:00
Francesco Abbate
c2cccf0173
Fix conflict in treeview for top directories
...
Happened if a filename has the same name of a top directory.
It will cause a collision in the string to identify the entry into the cache.
2021-01-19 16:40:00 +01:00
Francesco Abbate
9412b3f0d8
Do not add project path in files from project search
2021-01-13 17:09:35 +01:00
Francesco Abbate
08b010a2da
Add command root:close-all
2021-01-13 16:51:42 +01:00
Francesco Abbate
ef5e431a8b
New feature to disable plugins from config
...
Disable trimwhitespace by default
2021-01-13 14:50:24 +01:00
Francesco Abbate
fcf763fe9c
Fix problem when project directory has a trailing slash
2021-01-10 12:56:15 +01:00
Francesco Abbate
7f9e4e4984
Do not error out when project directory is invalid
2021-01-10 11:50:15 +01:00
Francesco Abbate
9f0fa5121b
Add keymap bindings for ctrl/shift insert commands
2021-01-06 15:16:43 +01:00
Francesco Abbate
773464eab8
Merge remote-tracking branch 'rxi/master'
2021-01-04 13:59:53 +01:00
Francesco Abbate
431bf68e72
Fix missing gome expand in remove-directory command
2021-01-03 23:52:02 +01:00
Francesco Abbate
d85598ce17
Write workspace information in lite-xl config directory
2021-01-03 23:36:28 +01:00
Francesco Abbate
8d4ba0cb34
Fix behavior when selecting project directories
2021-01-03 15:35:35 +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
850fcbf710
Add required normalize_path call
2020-12-31 12:32:41 +01:00
Francesco Abbate
2cdf674b97
Keep memory of window's size and position and restore them on start
...
Fix also a problem with directory path on windows.
2020-12-31 11:25:12 +01:00
Francesco Abbate
9e5bf485df
Fix problem in workspace for relative directory
2020-12-31 09:09:21 +01:00
Francesco Abbate
0ff61a30e1
Lite XL modification to welcome screen
2020-12-30 16:15:57 +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
7280ae47ab
Fix missing absolute_path call in change-project-folder command
2020-12-30 14:40:03 +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
4e260cd03e
Add a comment about a possible improvement
2020-12-27 18:33:34 +01:00
Francesco Abbate
df74781da8
Fix project search and status view for new add directory feature
2020-12-27 18:28:21 +01:00