~hadronized

France

https://strongly-typed-thoughts.net

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

Trackers

~hadronized/splines

Last active 16 days ago

~hadronized/flirt

Last active 23 days ago

~hadronized/kak-tree-sitter-bugs

Last active 23 days ago

~hadronized/kak-tree-sitter-features

Last active a month ago

#2 Use `Result` instead of `Option` for `sample` and `clamp_sample`. 16 days ago

Comment by ~hadronized on ~hadronized/splines

I'm a bit confused why it's there and some feedback of the function would be nice to debug the issue for example: "There are not enough keys to compute the sample at t = <bla>." or something like that. So returning something like a Result<V, &'static str> or Result<V, SampleError> would be nice in my opinion :)

Hi again,

So, I don’t think it would be too hard to introduce this new feature. I think that we could introduce a new method for this usecase, so that people not caring about the actual reason for the value not being there do not have a price to pay for the error handling part (which might require cloning behind the scene, at the last the key — for most people it should be something like f64 but in theory it could be anything.

I’ll try to allocate some time to work on that soon so that I can release a new minor version.

Thanks again for reporting!

#1 No values near the edges 22 days ago

Comment by ~hadronized on ~hadronized/splines

REPORTED RESOLVED FIXED

#1 No values near the edges 22 days ago

Comment by ~hadronized on ~hadronized/splines

For now, I’m just going to update the documentation and specify that it is not possible to get values interpolated between P0 and P1, and P2 and P3 if only P0, P1, P2 and P4 are provided. Any other behavior could be implemented in various different ways, and so far there hasn’t been really a way to decide which one to use, so I’d rather have the user handle that special case for now.

My initial point still stands; I’ll be happy to review a patch.

#3 Hinting mode 23 days ago

feature added by ~hadronized on ~hadronized/flirt

#3 Hinting mode 23 days ago

Ticket created by ~hadronized on ~hadronized/flirt

I think it would be valuable to have a mode to hint visible files / directories, and jump to them by pressing the visible hints. I have made numerous implementations of that, it’s pretty useful.

#1 Add vi navigation keybinds to flirt, especially for search and filtering 23 days ago

feature added by ~hadronized on ~hadronized/flirt

#21 Grammars fail to load: "dynamic loading not supported 23 days ago

Comment by ~hadronized on ~hadronized/kak-tree-sitter-bugs

Linux x230 6.12.5-1-lts # 2-Alpine SMP PREEMPT_DYNAMIC 2024-12-19 15:58:16 x86_64 Linux

#21 Grammars fail to load: "dynamic loading not supported 23 days ago

Comment by ~hadronized on ~hadronized/kak-tree-sitter-bugs

Hi,

I’m not sure what’s going on here. The error message you get is propagated via libloading, a dependency of kak-tree-sitter, which — I think — propagates the error from dlerror().

The only similar issue I see mentioned online is this, and I’m not sure it’s the same problem.

Maybe there has been a regression in libloading? I’ll take about it with them.

Cheers.

#1 Add vi navigation keybinds to flirt, especially for search and filtering 23 days ago

Comment by ~hadronized on ~hadronized/flirt

Dimitri Sabadie referenced this ticket in commit a6bef66.

#1 Add vi navigation keybinds to flirt, especially for search and filtering 23 days ago

Comment by ~hadronized on ~hadronized/flirt

i have already been finding flirt quite useful :)

I’m glad to hear that! It’s meant to be lightweight and composable, so it’s nice to hear!

Adding one more wrinkle to the file list that would be of use for coders: toggling the list sort

  • filename case insensitive/sensitive
  • mixed folders and files OR folders on top
  • by modified date
  • reverse sort of the above

All of that is legitimate. I think it’s worth splitting in several issues. The current sorting functions uses path names, but it should be fairly easy to customize the sorting. However, it would probably require some UX/UI discussions.

Some quick keybinds. Perhaps..

"h" to move up the directory tree (or maybe "backspace")

It’s already bound to o by default (to mimick the C-o of vim). You can find the list of available actions here.

"H" to jump to the root directory flirt opened on (or shift-backspace)

This one should be fairly simple to implement too, and might be useful indeed!

maybe ctrl-h to set a new root directory for the above? (or ctrl-backspace)

If you find a real-world use-case, why not. But for now I don’t see one.

shift-space to mark the current file and move down one row in the list

I can translate this one to a more general feature: multi-action bindings. Your S-<spc> could simply be implemented as ["toggle-select", "next"]

Cheers!