Francesco Abbate
f7375924ab
Make non-borderless mode work
2021-04-12 19:05:30 +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
04063ff47e
Fix error introduced with commit c0ad86d
2021-03-18 15:46:44 +01: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
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
bud
63b024cb81
FIX: Use PATHSEP instead of hardcoded "/" path separator
2021-02-16 19:25:40 +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
Francesco Abbate
08b010a2da
Add command root:close-all
2021-01-13 16:51:42 +01:00
Francesco Abbate
431bf68e72
Fix missing gome expand in remove-directory command
2021-01-03 23:52:02 +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
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
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
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
Francesco Abbate
e4fa196b33
Finalize add project directory feature
2020-12-27 11:32:52 +01:00
Francesco Abbate
9a12d47afd
Add HOME directory expansion also for open file command
2020-12-20 00:31:49 +01:00
Francesco Abbate
4401f33c19
Move HOME expand/encode into common module
2020-12-19 23:53:29 +01:00
Francesco Abbate
35c87462a6
Use ~ for HOME directory in folder search
2020-12-19 16:31:42 +01:00
Francesco Abbate
9114148b45
Automatically reload style when saving the project user module
2020-12-10 17:56:53 +01:00
Francesco Abbate
6409b67ea2
Add core:restart function to restart the editor
2020-12-10 12:44:01 +01:00
Francesco Abbate
e88adc0567
Move project manager into core init file
2020-12-08 16:57:57 +01:00
Francesco Abbate
3589d7d3c0
First implementation of unix-like data directory
...
It basically works by setting the data directory to
$prefix/share/lite-xl
where $prefix is determined so that $prefix/bin corresponds to EXEDIR.
The packages 'user' and 'user.*' are loaded from the directory
'$HOME/.config/lite-xl'.
2020-12-02 00:23:15 +01:00
Francesco Abbate
bdaddea29a
Fix behavior when using un-indent command over multiple lines
2020-11-18 15:52:53 +01:00
Francesco Abbate
1db0f703e7
Merge remote-tracking branch 'origin/master'
2020-11-17 10:28:20 +01:00
Francesco Abbate
82dc76dd00
Add recently visited files in the list when using find file command
2020-11-16 23:52:51 +01:00
Francesco Abbate
121f0e1aa0
Improve behavior for indent command with selection over multiple lines
...
Do not add indentation for the last line is not selected.
2020-11-16 11:52:41 +01:00
rxi
de5cb4fa52
Improved behaviour of `doc:join-lines` when joining to empty line
2020-09-27 15:03:53 +01:00
rxi
bd0644a5bb
Added resetting of selection on intermediate find-text failure
2020-06-04 14:04:46 +01:00
rxi
db8c5ea2aa
Renamed core:command/file-finder => core:find-command/file
2020-05-30 09:11:42 +01:00
rxi
1b2fda2825
Changed block movement to mimic word movement
2020-05-28 13:55:25 +01:00
rxi
9c652086e8
Improved behaviour of and renamed `translate.next|previous_word_boundary`
2020-05-28 11:57:53 +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
ed86f7d04e
Fixed find-replace:select-next erroring on multiline selection
2020-05-12 20:05:17 +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
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
596b40c741
Made `find-replace:find-symbol` use first symbol in sel as default
2020-05-07 10:55:11 +01:00