~hadronized

France

https://strongly-typed-thoughts.net

Oublie qu’t’as aucune chance; va-y fonce.

~hadronized/kak-tree-sitter-announce

Last active 3 days ago

~hadronized/kak-tree-sitter-devel

Last active 4 days ago

~hadronized/kak-tree-sitter-discuss

Last active a month ago
View more

Recent activity

ktsctl rm and kak-tree-sitter bug fixes 3 days ago

From Dimitri Sabadie to ~hadronized/kak-tree-sitter-announce

Hello,

This mail announces the releases of

* `kak-tree-sitter-v1.0.1`, which received a bunch of bug fixes, mainly
  around text-objects selections, as well as not failing earlier when a
  language has issues loading.

  [Changelog](https://git.sr.ht/~hadronized/kak-tree-sitter/tree/master/item/kak-tree-sitter/CHANGELOG.md#v101)
* `ktsctl-v1.1.0`, which now supports the `rm` subcommand (along with a
  `--prune` flag). That command can be used to remove already installed
	resources. A follow-up update should arrive for `ktsctl sync --prune`
  to remove out-of-sync pinned resources.

Re: [PATCH kak-tree-sitter] Fix coordinate conversion in navigation 4 days ago

From Dimitri Sabadie to ~hadronized/kak-tree-sitter-devel

> There is a more fundamental issue here in this logic that i dont really know how
> to solve however. By using end.col -= 1 in many locations, it is breaking for
> nodes that have end.col = 1. In practice this happens for instance when
> continuously selecting the parent in rust. Eventually it will reach the full
> file, which has node.end_position().col == 0. For this, :select fails.

Yeah, I have seen that once or twice too, and it’s unfortunate — and no
solution was found yet.

> I see a couple of options here:
>
>  1. Simply clamp the value to 1 - in some cases this will result in the first
>     character on the next line being selected, which is only slightly better
>     than failing outright

Re: [PATCH kak-tree-sitter] Fix coordinate conversion in navigation 5 days ago

From Dimitri Sabadie to ~hadronized/kak-tree-sitter-devel

Hey!

Ah that’s a nice fix, thanks a lot! Applied. I’ll make a release as a
patch version later today / this weekend.

-- 
Dimitri

Re: [PATCH kak-tree-sitter v2] Fix crash when highlighter fails to load for a language. 5 days ago

From Dimitri Sabadie to ~hadronized/kak-tree-sitter-devel

Hello,

Thank you for the patch. Applied.

-- 
Dimitri

kak-tree-sitter v1.0.0 7 days ago

From Dimitri Sabadie to ~hadronized/kak-tree-sitter-announce

Hello everyone,

The late weeks have been pretty busy for me, both in terms of KTS and
other matter. Nevertheless, today is the time to announce a new release.
And not any release: the v1.0.0.

Why now specifically? Most important features are there, and even though
not everything is bundled, the reached stability is enough for a v1.
I also belong to this kind of developer thinking a v1 is just yet
another major version, and we should not sacralize things things too
much. This version is plainly usable and most features I have on my mind
will ship in the upcoming days as minor increments.

There is no single changelog to point to, but three (one for each

Re: Payment methods 14 days ago

From Dimitri Sabadie to ~sircmpwn/sr.ht-discuss

Thank you, I completely missed the blog post. I’ll read that.

Re: More control on builds.sr.ht 14 days ago

From Dimitri Sabadie to ~sircmpwn/sr.ht-dev

> These are on our todo list to address.

Oh, sorry, I didn’t catch that in the first place. Hyped to read that!

> This one has a workaround, though, we define GIT_REF in the guest
> environment when you push to git.sr.ht and it triggers a build, you can
> match on that in a task script and run the complete-build command to
> quit the build early.

Ah indeed, nice! Thank you!

[PATCH kak-tree-sitter] Split OhNo::UnixSocketError into ConnectionError+ReadError. 15 days ago

From Dimitri Sabadie to ~hadronized/kak-tree-sitter-devel

That will help diagnose issues with the UNIX socket.
---
 kak-tree-sitter/src/error.rs  | 7 +++++--
 kak-tree-sitter/src/server.rs | 4 ++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/kak-tree-sitter/src/error.rs b/kak-tree-sitter/src/error.rs
index 3f54448..2df6ce6 100644
--- a/kak-tree-sitter/src/error.rs
+++ b/kak-tree-sitter/src/error.rs
@@ -64,8 +64,11 @@ pub enum OhNo {
  #[error("cannot load grammar for language {lang}: {err}")]
  CannotLoadGrammar { lang: String, err: String },

[message trimmed]

[PATCH kak-tree-sitter] Fix tree-sitter objects. 15 days ago

From Dimitri Sabadie to ~hadronized/kak-tree-sitter-devel

---
 kak-tree-sitter/rc/static.kak | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kak-tree-sitter/rc/static.kak b/kak-tree-sitter/rc/static.kak
index 1c6cfe6..c7f4bfa 100644
--- a/kak-tree-sitter/rc/static.kak
+++ b/kak-tree-sitter/rc/static.kak
@@ -105,14 +105,14 @@ define-command tree-sitter-text-objects -params 2 %{
#
# First parameter is the pattern.
define-command tree-sitter-object-text-objects -params 1 %{
  tree-sitter-request-with-session-client "{ ""type"": ""text_objects"", ""buffer"": ""%val{bufname}"", ""pattern"": ""%arg{1}"", ""selections"": ""%val{selections_desc}"", ""mode"": { ""object"": { ""mode"": ""%val{select_mode}"", ""flags"": ""%val{object_flags}"" }}"
  tree-sitter-request-with-session-client "{ ""type"": ""text_objects"", ""buffer"": ""%val{bufname}"", ""pattern"": ""%arg{1}"", ""selections"": ""%val{selections_desc}"", ""mode"": { ""object"": { ""mode"": ""%val{select_mode}"", ""flags"": ""%val{object_flags}"" } } }"
[message trimmed]

[PATCH] Fix tree-sitter objects. 15 days ago

From Dimitri Sabadie to ~hadronized/kak-tree-sitter-devel

---
 kak-tree-sitter/rc/static.kak | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kak-tree-sitter/rc/static.kak b/kak-tree-sitter/rc/static.kak
index 1c6cfe6..c7f4bfa 100644
--- a/kak-tree-sitter/rc/static.kak
+++ b/kak-tree-sitter/rc/static.kak
@@ -105,14 +105,14 @@ define-command tree-sitter-text-objects -params 2 %{
#
# First parameter is the pattern.
define-command tree-sitter-object-text-objects -params 1 %{
  tree-sitter-request-with-session-client "{ ""type"": ""text_objects"", ""buffer"": ""%val{bufname}"", ""pattern"": ""%arg{1}"", ""selections"": ""%val{selections_desc}"", ""mode"": { ""object"": { ""mode"": ""%val{select_mode}"", ""flags"": ""%val{object_flags}"" }}"
  tree-sitter-request-with-session-client "{ ""type"": ""text_objects"", ""buffer"": ""%val{bufname}"", ""pattern"": ""%arg{1}"", ""selections"": ""%val{selections_desc}"", ""mode"": { ""object"": { ""mode"": ""%val{select_mode}"", ""flags"": ""%val{object_flags}"" } } }"
[message trimmed]