Francesco Abbate
3109263c5d
Call dmon_unwatch when changing project
...
Fix a conspicuous omission to call the dmon_unwatch function
when changing project directory.
This uncovered a bug or a quirk of the dmon library where the watch_ids
can change as a result of calling dmon_unwatch because they are just
indexes on a contiguous array. Use a workaround to always unwatch the
first valid watch_id N times.
2021-12-20 14:42:48 +01:00
Jipok
8178fc46bb
Add some comments to style
2021-12-20 17:12:37 +05:00
Takase
f2ff32d5a7
Merge pull request #583 from takase1121/process-docs-update
...
update process API docs
2021-12-20 20:06:18 +08:00
Jipok
c353dd6eda
Add for config.highlight_current_line new variant: no_selection
2021-12-20 16:23:01 +05:00
Guldoman
29318be9c7
Consume unmatched character correctly
...
We must consume the whole UTF-8 character, not just a single byte.
2021-12-20 12:04:20 +01:00
Francesco Abbate
37c00c877a
Ensure TreeView cache entry is removed on delete
...
Address issue:
https://github.com/lite-xl/lite-xl/issues/689
Attempt to provide a more accurate fix to commit:
59f64088e1
For this latter what happens is that any change inside a directory
cause the corresponding entry to be folded in the TreeView.
The new change is more accurate because we remove only the stale
entry corresponding to the delete event and we do not reset the
cache of the parent directory using the modify event.
2021-12-20 11:03:49 +01:00
Francesco Abbate
405bd1c2bd
Fix logic in project's file insertion
...
The function "file_search" in core.init was sometimes giving a wrong index
value, off by one.
The problem happened for example when the entry to search was "less than"
the first entry, the function returned a value of two instead of one as
expected.
The bug was easily observed creating a new directory with a name that comes
as the first in alphabetical order within the project.
2021-12-20 09:05:45 +01:00
Adam Harrison
e512c57637
Added an exclusion for lineguide in the commandview.
2021-12-20 08:43:48 +01:00
Guldoman
23f83857c5
Don't search if there are no files
2021-12-20 08:40:43 +01:00
Jipok
0461d3bdce
Predifined colors: good, warn, error, modified
2021-12-20 01:51:52 +05:00
Jipok
4183d3b2fd
Add predefined colors to style: good, bad
2021-12-20 01:27:53 +05:00
Guldoman
2e9619f630
Directly link to our repo
2021-12-19 18:13:19 +01:00
Guldoman
4cf9d85986
Use new color themes repo
2021-12-19 18:12:34 +01:00
Adam
4d5d3e2565
Update README.md
2021-12-18 22:37:33 -05:00
takase1121
695c7bf781
add instruction when logview is open
2021-12-19 09:36:43 +08:00
takase1121
1526cd176c
move selection logic to mouse click
2021-12-19 09:36:24 +08:00
Adam Harrison
9cf795dabf
Forgot a line or two.
2021-12-18 15:43:44 -05:00
Adam Harrison
443177cc1c
Cleaned up links.
2021-12-18 15:42:57 -05:00
Adam Harrison
cb13afd749
Changed operator to be more correct for utf8.
2021-12-18 15:11:50 -05:00
Adam Harrison
b4384eb49d
Added in @Jipok's comment.
2021-12-18 15:09:00 -05:00
Adam
baf43084b6
Merge pull request #745 from Jipok/keycode_fix
...
Correct definition of the pressed key for different layouts and languages
2021-12-18 14:55:14 -05:00
Jipok
a8f7e9a35e
Correct definition of the pressed key for different layouts and languages
2021-12-19 00:24:28 +05:00
Adam
7ae33bf6f4
Merge pull request #738 from adamharrison/restart-keymap
...
Added in restart keymapping.
2021-12-18 13:44:04 -05:00
Adam
a019420bf9
Merge pull request #739 from adamharrison/include-fixes
...
Takes kivutar's changes into account, cleaning things up slightly.
2021-12-18 13:43:54 -05:00
takase1121
becdb99222
center icons to accomodate for size difference
2021-12-18 22:42:33 +08:00
takase1121
31df408d93
make timestamp fix sized
2021-12-18 20:11:50 +08:00
takase1121
fd3b4334ce
add clipping to drawing log items
2021-12-18 20:11:24 +08:00
takase1121
b5dff196f6
make error icon red
2021-12-18 20:10:25 +08:00
takase1121
ab4ecd515b
multiple improvements to logging
...
- added style.log table
- removed contextmenu
- use ctrl+click to copy individual log entries
- use icon instead of + or - for log items in logview
2021-12-18 10:51:44 +08:00
Adam Harrison
eb9918089a
Takes kivutar's changes into account, cleaning things up slightly.
2021-12-15 20:31:24 -05:00
Adam Harrison
b7631ba44a
Added in restart keymapping.
2021-12-15 16:50:38 -05:00
Guldoman
69de42b078
Set `void` to `keyword2` in `language_c` and `language_cpp` plugins
...
Move `void` to the same syntax type used by other data types.
2021-12-15 18:20:17 +01:00
Adam
997b3efbb7
Merge pull request #708 from Guldoman/treeview_styling
...
Allow `TreeView` item icon and text styling
2021-12-12 12:04:59 -05:00
Adam
dadfa4b3e8
Merge pull request #729 from adamharrison/fix-treeview-clicking
...
Fix TreeView and StatusView clicking
2021-12-11 19:05:52 -05:00
Adam
9a813c818b
Merge pull request #715 from Guldoman/split_rootview
...
Split `Node` and `EmptyView` from `RootView`
2021-12-11 18:15:33 -05:00
Adam Harrison
ff5c3c1492
Also fixed statusview.
2021-12-11 18:00:42 -05:00
Adam Harrison
95945d86ab
Removed erroneously added file.
2021-12-11 17:51:51 -05:00
Adam Harrison
7b55470159
Fixed treeview clicking not being caught.
2021-12-11 17:51:19 -05:00
Jipok
7381a13d6f
Revert "Make pasting multiple lines from clipboard same way as a single line"
...
This reverts commit 6a135f7c06
.
2021-12-12 02:23:47 +05:00
Adam
29ece95962
Merge pull request #725 from Guldoman/fix_consume_no_match
...
Consume unmatched character correctly
2021-12-11 15:35:22 -05:00
Adam
f1054b8280
Replace Reproc ( #535 )
...
Replace reproc with simpler non-dependency-based process API.
2021-12-11 15:25:35 -05:00
Adam
a1401efd1f
Merge pull request #728 from Jipok/shortcuts_locale_fix
...
Keyboard layout independent shortcuts
2021-12-11 15:18:47 -05:00
Jipok
c3b7234315
Keyboard layout independent shortcuts
2021-12-11 23:42:15 +05:00
Guldoman
4faaf089ef
Consume unmatched character correctly
...
We must consume the whole UTF-8 character, not just a single byte.
2021-12-11 03:43:33 +01:00
Jipok
6a135f7c06
Make pasting multiple lines from clipboard same way as a single line
2021-12-10 19:25:28 +05:00
Jipok
4a563ddea1
Delete old forgotten self.cursor_clipboard
2021-12-10 19:23:49 +05:00
Jipok
4eee123eff
Make cursor_clipboard globa, not per doc
2021-12-08 17:34:10 +05:00
Guldoman
c16d6b3d8d
Avoid drawing hidden `TreeView` items
2021-12-07 21:45:20 +01:00
Guldoman
fdb29f28cf
Split `TreeView:draw` into multiple functions
...
This allows plugins to override each aspect of TreeView item drawing.
2021-12-07 21:44:20 +01:00
Guldoman
7cb2068bb8
Split `Node` and `EmptyView` from `RootView`
2021-12-06 22:28:29 +01:00