vqn
9c21903af7
add autocompletion to multicursor ( #1394 )
...
* use Doc:remove
2023-12-29 08:47:21 +08:00
Techie Guy
68595e4c7c
autocomplete: wrap the autocomplete results around ( #1223 )
2022-12-06 06:21:14 -04:00
jgmdev
0030c69524
plugin autocomplete: update partial on manual trigger
2022-10-25 17:20:31 -04:00
jgmdev
bead59a898
autocomplete: properly replace current partial symbol
2022-09-12 22:41:50 -04:00
Guldoman
06b9953777
Use `Object:is` instead of direct metatable comparison in `autocomplete`
2022-08-16 22:13:25 +02:00
Guldoman
cf29a6a45f
Allow command predicates to manage parameters passed to the commands
...
When a command is performed with parameters, those are now passed to the
predicate.
The predicate can then return, after the validity boolean, any other
value that will then be passed to the actual command.
If the predicate only returns the validity boolean, the original
parameters are passed through to the actual command.
This allows predicates to manipulate the received parameters, and allows
them to pass the result of an expensive computation to the actual
command, which won't have to recalculate it.
String and table predicates will now also return `core.active_view`.
2022-08-16 22:13:16 +02:00
Guldoman
79dd8779c4
`autocomplete`: Fix "Too many symbols" message when `Doc` has no name
...
Before, when a `Doc` had no name, an error was thrown.
2022-06-29 05:54:37 +02:00
jgmdev
2d8a15f3ab
plugins: dropped --lite-xl version tag
2022-05-31 16:34:14 -04:00
jgmdev
8bbca7c0b0
plugins: added settings gui support
2022-05-23 17:50:10 -04:00
Adam Harrison
09bfb8d869
Updated linewrap and autocomplete to use the new get_line_screen_position which takes a col.
2022-05-04 20:05:41 -04:00
Adam
5df1640595
Merge branch 'master' into master-2.1
2022-04-24 13:42:24 -04:00
Francesco
16fcb2e751
Merge pull request #913 from lite-xl/auto-complete-syntax-symbols
...
Add syntax symbols for auto-complete
2022-04-11 20:42:17 +02:00
Francesco Abbate
d4f84e1aff
Add syntax symbols for auto-complete
2022-04-10 10:32:43 +02:00
Guldoman
e5c55e8abc
Early `break` if `autocomplete` needs to update
2022-04-10 04:20:46 +02:00
Guldoman
ffe698cef7
Consider last document line to gather `autocomplete` symbols
2022-04-10 04:11:59 +02:00
Adam Harrison
45a0382d50
Bumping version numbers.
2022-04-03 16:44:02 -04:00
jgmdev
6773e85cb8
Update autocomplete with changes needed for latest LSP plugin.
2022-02-03 15:01:39 -04:00
Adam Harrison
456126400a
Added in new merge method, and run it on plugins. Also made it so plugin configs can be set anywhere, even if we don't know the plugin beforehand.
2022-01-22 18:39:23 -05:00
takase1121
7a24dbb17e
revert new keyboard bindings
2021-09-09 07:44:58 +02:00
takase1121
1a21c66353
add autocomplete:cycle
...
Some (probably lots) of people are used to tabbing through autocomplete.
now, tab is binded to autocomplete:cycle while enter is binded to
autocomplete:complete.
2021-09-09 07:44:58 +02:00
Francesco Abbate
e94718c5c4
Bring back min len autocomplete default to 3
2021-08-30 14:35:42 +02:00
Adam Harrison
b6af395fc7
2.0 changelog and modversion updates.
2021-08-17 20:24:44 +02:00
Francesco Abbate
62bcc6abc2
Fix missing commas in autocomplete module
2021-08-02 10:07:43 +02:00
Adam Harrison
0777a6f0b8
Merged dev to master.
2021-07-20 14:39:50 -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
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
Francesco Abbate
d7cc1f9f9d
Add plugin verification by version tag
2021-04-06 17:50:46 +02: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
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
d8c4bfa6ba
Initial commit
2019-12-28 11:17:56 +00:00