ath3
6fa76d9fe7
Add trim_selections command ( #1092 )
2021-11-15 00:16:20 +09:00
Blaž Hrastnik
1817b7f581
minor: Import Range too
2021-11-15 00:12:14 +09:00
ath3
35c974c9c4
Implement "Goto last modification" command ( #1067 )
2021-11-15 00:11:53 +09:00
Omnikar
bf95a9ed04
Add remove_selections
command ( #1065 )
...
* Add `remove_selections` command
* Document `remove_selections`
* Update helix-term/src/keymap.rs
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
2021-11-12 09:34:08 +09:00
Omnikar
a424ef4e20
Use default languages.toml
if user's is invalid ( #994 )
2021-11-09 11:07:54 +09:00
Blaž Hrastnik
e18198aeb2
Revert "fix(core): stop merging array toml config values ( #1004 )"
...
It breaks languages.toml merging
This reverts commit 4304b52ff86f829115cb89b20160b4f80dbb3dbd.
2021-11-09 10:58:23 +09:00
Blaž Hrastnik
f804ed3192
Make shebangs optional, they don't make sense outside of scripts
2021-11-09 10:57:08 +09:00
Blaž Hrastnik
549cdee561
Refactor shebang detection to reuse the loaded buffer
2021-11-09 00:30:34 +09:00
ath3
77dbbc73f9
Detect filetype from shebang line ( #1001 )
2021-11-09 00:19:44 +09:00
Blaž Hrastnik
82ff5b0ab6
Specify capacity on toggle_line_comments
2021-11-08 10:03:21 +09:00
Daniel S Poulin
1e793c2bbf
Adds single and double quotes to matching pairs ( #995 )
...
This enables `mm` to work on quote characters as well as highlighting of
matching quote when on it.
2021-11-08 09:57:26 +09:00
Omnikar
a252ecd8c8
Add WORD textobject ( #991 )
...
* Add WORD textobject
* Document WORD textobject
2021-11-08 09:54:39 +09:00
Carter Snook
4304b52ff8
fix(core): stop merging array toml config values ( #1004 )
2021-11-08 09:50:03 +09:00
Blaž Hrastnik
f2b709a3c3
Merge branch 'master' into debug
2021-11-07 00:28:19 +09:00
Blaž Hrastnik
f979bdc442
Specify capacity on toggle_line_comments
2021-11-06 23:57:42 +09:00
Blaž Hrastnik
e80708eba7
Make sure document diagnostics are sorted
2021-11-06 18:58:58 +09:00
Blaž Hrastnik
6431b26a6a
Implement Selection::replace to replace a single range
...
Fixes #985
Co-authored-by: Daniel S Poulin <crimsonmage+github@gmail.com>
2021-11-06 17:37:45 +09:00
Ivan Tham
3eb829e233
Ensure coords in screen depends on char width ( #885 )
...
The issue affected files with lots of tabs at the start as well.
Fix #840
2021-11-03 12:02:29 +09:00
Kirawi
ee889aaa85
Updated tree-sitter query scopes ( #896 )
...
* updated theme scopes
variable.property -> variable.field
property -> variable.field
* updated theme scopes
* update book and themes
updated book and themes to reflect scope changes
* wip
* update more queries
* update dark_plus.toml
2021-11-03 12:00:52 +09:00
cossonleo
befecc8a9a
select smaller range on some case
2021-10-29 10:04:12 +09:00
Omnikar
45fadf6151
Add hyperlinks to fix cargo doc
warn ( #931 )
2021-10-29 09:55:15 +09:00
Gygaxis Vainhardt
0a38983ee3
Remove three transmutes from helix-core syntax.rs ( #923 )
2021-10-28 10:24:11 +09:00
Kirawi
92c2d5d3bf
Document more of helix-core ( #904 )
2021-10-26 01:02:16 +09:00
Blaž Hrastnik
3edca7854e
completion: fully revert state before apply & insertText common prefix
2021-10-25 11:09:09 +09:00
Blaž Hrastnik
bfb6cff5a9
fix: Compose where changes.compose(empty_other)
2021-10-25 11:09:09 +09:00
Dmitry Sharshakov
6aa9838ea6
dap: support arrays as arguments
2021-10-24 17:24:18 +03:00
Blaž Hrastnik
cee7ad781e
Mark a few functions as const
2021-10-24 17:28:29 +09:00
Kirawi
0cb5e0b2ca
log syntax highlighting init errors ( #895 )
2021-10-23 21:52:18 +09:00
Gokul Soumya
4ee92cad19
Add treesitter textobjects ( #728 )
...
* Add treesitter textobject queries
Only for Go, Python and Rust for now.
* Add tree-sitter textobjects
Only has functions and class objects as of now.
* Fix tests
* Add docs for tree-sitter textobjects
* Add guide for creating new textobject queries
* Add parameter textobject
Only parameter.inside is implemented now, parameter.around
will probably require custom predicates akin to nvim' `make-range`
since we want to select a trailing comma too (a comma will be
an anonymous node and matching against them doesn't work similar
to named nodes)
* Simplify TextObject cell init
2021-10-23 11:41:19 +09:00
Michael Davis
1766bdb9d4
clean up combined-injections comment ( #880 )
2021-10-19 13:08:06 +09:00
Blaž Hrastnik
83a8167402
Invert core -> dap dependency
2021-10-17 13:58:11 +09:00
Blaž Hrastnik
0a6b60085a
Merge branch 'master' into debug
2021-10-17 13:51:56 +09:00
Ivan Tham
4260b31ec0
Update mdbook style and fix unreadable table head ( #806 )
...
The styles are now pulled from upstream styles, some of the changes I
submitted it back to upstream.
Fix #796
2021-10-09 20:35:27 +09:00
Midnight Exigent
eedcea7e6b
Allow language.config
(in languages.toml) to be passed in as a toml object ( #807 )
...
* allow language.config (in languages.toml) to be passed in as a toml object
* Change config field for languages from json string to toml object
* remove indents on languages.toml config
* fix: remove patch version from serde_json import in helix-core
* Use same tree-sitter-zig as upstream/master
2021-10-08 11:14:12 +09:00
Dmitry Sharshakov
d943a51e3e
editor: add Node.js debugger
2021-09-26 21:36:06 +03:00
Dmitry Sharshakov
bf53aff27d
Merge branch 'master' into debug
2021-09-25 23:14:59 +03:00
Blaž Hrastnik
2e0803c8d9
Implement 'remove_primary_selection' as Alt-,
...
This allows removing search matches from the selection
Fixes #713
2021-09-24 10:30:28 +09:00
Blaž Hrastnik
64e8f0017c
...
2021-09-16 16:04:32 +09:00
Blaž Hrastnik
d8b94ba85f
Fix broken test
2021-09-16 15:54:43 +09:00
Blaž Hrastnik
dd0b15e1f1
syntax: Properly handle injection-regex for language injections
2021-09-16 15:50:14 +09:00
Blaž Hrastnik
066367c0a4
fix: Need to reset set_byte_range in case cursor_ref is reused.
2021-09-13 17:44:57 +09:00
Dmitry Sharshakov
413e477dc2
lldb: use stdio transport by default
2021-09-06 13:49:31 +03:00
Blaž Hrastnik
4ac29434cb
syntax: Add go & rust locals, improve tree-sitter error message
2021-09-06 18:13:52 +09:00
Blaž Hrastnik
585e3ce830
fix: tree-sitter-scopes would infinitely loop
2021-09-06 15:25:46 +09:00
Blaž Hrastnik
3cb95be452
Update tree-sitter to 0.20
...
0.20 includes querying improvements, we no longer have to convert
fragments to strings but can return an iterator of chunks instead.
2021-09-06 13:21:53 +09:00
Blaž Hrastnik
4d24a43651
dap: use smallvec! macro
2021-08-29 23:02:46 +09:00
Dmitry Sharshakov
b42631942b
Defaults in completions, better schema
2021-08-29 14:51:47 +03:00
Dmitry Sharshakov
e315394631
Merge remote-tracking branch 'origin/master' into debug
2021-08-28 14:59:26 +03:00
Brian Shu
fa4caf7e3d
remove unsafe
2021-08-27 09:50:57 +09:00
Yusuf Bera Ertan
dc57f8dc89
feat: merge default languages.toml with user provided languages.toml, add a generic TOML value merge function ( #654 )
...
* feat: merge default languages.toml with user provided languages.toml
* refactor: use catch-all to override all other values for merge toml
* tests: add a test case for merging languages configs
* refactor: change test module name
2021-08-27 00:29:14 +09:00