helvede.net is one of the many independent Mastodon servers you can use to participate in the fediverse.
Velkommen til Helvede, fediversets hotteste instance! Vi er en queerfeministisk server, der shitposter i den 9. cirkel. Welcome to Hell, We’re a DK-based queerfeminist server. Read our server rules!

Server stats:

159
active users

#HelixEditor

0 posts0 participants0 posts today
Continued thread

So it does look like the TypeScript language server has a limit of 4MB source size where it disables type checking (and actually shows an erroneous error stating that exports that exist in the file do not exist) for files that are imported but not open in the current workspace/session.

Still not sure if this is documented anywhere or not (haven’t been able to find it, if it is).

99.99999% of the time, unless you’re doing niche stuff like I am, you won’t run into this.

Workaround: should you have such a large file, e.g., with a large generated object, try and refactor to split it up into multiple files and rejoin it a separate file. The actual object size/memory usage isn’t the issue, it’s the file size.

github.com/typescript-language

I ran into an issue while creating and exporting a constant object that holds component versions of the ~1,500 icons in the Phorsphor icons library and I’ve created the simple reproduction below: D...
GitHubServer fails on import when exported object constant has too many entries/is too large · Issue #951 · typescript-language-server/typescript-language-serverBy aral
#TypeScript#max#lines

I created a crib sheet for the #Helix text editor:

bobulous.org.uk/coding/Helix-c

As usual I intended the new page to be compact and concise; and as usual it ended up being huge and rambling. Hopefully it'll still be of use to people who aren't fully familiar with the most useful keys and commands. (And just maybe of vague interest to #Neovim users who are thinking about trying Helix.)

Let me know if you spot anything incorrect.

www.bobulous.org.ukHelix crib sheetA quick reference for the key bindings and modes used in the multi-modal text editor Helix.
Been playing around with #Neovim again and tonight I'm going to continue migrating my old setup from packer.nvim to lazy.nvim and maybe tweak it some more with new plugins ? I'm still using #HelixEditor but the ongoing lack of customisability via plugins is a negative for me I guess. I did notice though that for Neovim #FreeBSD does not have the lua-language-server but you can build it yourself if needed.
I'll push my new config to my git repo once I'm happy with it.

With #HelixEditor 25.1, there's now an easier way to focus on just the files with #git conflicts to edit.

1. Use <space>g to open the menu of files with Git changes.
2. Type "%c co" to filter the list to just those files with conflicts.

This is using the new filtering syntax to select filter list entries by column using a % prefix for a column name.

"c" is sufficiently unique to match the column named "change" and
"co" is sufficiently unique to match the change type "conflict".

@helix

Continued thread

I'm out of time and did not get #HelixEditor / AI integration to work today, but all pieces seem to be there.

In theory, both code completion and "chatting about code" should work.

But the "Chatting" feature seems kind of dumb. It says to open a new Markdown file to chat in. But if I've going to do that, why not just type directly into the usual web app and copy back and forth?

If it's going to be much headache, might as well use #AI in a separate app.

Here are my notes from trying out LLM integration with #HelixEditor on #Linux

The LSP-AI project brings AI integration to any editor that supports LSP language servers, which is many of them now, including #NeoVim github.com/SilasMarvin/lsp-ai

On #ArchLinux I found this was already packaged as "lsp-ai".

For those who don't want to share their code with a third party, connecting to a local LLM is supported.

🧵

GitHubGitHub - SilasMarvin/lsp-ai: LSP-AI is an open-source language server that serves as a backend for AI-powered functionality, designed to assist and empower software engineers, not replace them.LSP-AI is an open-source language server that serves as a backend for AI-powered functionality, designed to assist and empower software engineers, not replace them. - SilasMarvin/lsp-ai
Continued thread

#HelixEditor 25.1 supports several new languages out of the box including

Sway and i3wm configs, and jq, Nginx.

Other languages added include the description for "jj", a Git alternative, TypeSpec, Thrift, Gherkin, Circom, Dune, Snakemake, Cylc, textproto, Spade, NestedText, Quint, Amber-lang, Teal and Koto.

Continued thread

#HelixEditor 25.1 allows you to navigate camelCase and snake_case words "sub words", but you have to enable bindings for these. The following will replace bindings that navigate whole words with ones that understand camelCase and snake_case.

[keys.normal]
W = 'move_next_sub_word_start'
B = 'move_prev_sub_word_start'
E = 'move_next_sub_word_end'

[keys.select]
W = 'extend_next_sub_word_start'
B = 'extend_prev_sub_word_start'
E = 'extend_next_sub_word_end'

Ref: github.com/helix-editor/helix/

GitHubAdd commands for movement by subwords by JeftavanderHorst · Pull Request #8147 · helix-editor/helixBy JeftavanderHorst

#HelixEditor 25.1 allows you to search through keybindings, whether you want to look up wants bound to a command or do the reverse and see what's bound to a key.

You use "<space>?" to open the command palette. Fuzzy searches operate on the default column, which is the command name, but if you want to search by the key instead, use "%bindings" to reference that column or %doc to reference the docs column.

Here's what it looks like to see what's bound to "r".

GREAT #HelixEditor trick someone here taught me!

If you want to create a file in the same directory as the file you have OPEN, you can do

:o

Then press Control + R, and hit %

That will put the full path of the file you have open.. and its easy to change the file name.

Same trick would be great if you want to delete the current file you have open

:sh rm <Ctr+r> %

Good stuff!

does anyone know, in #HelixEditor if there is a way to shorthand the CWD of the file you have open.

Like lets say i'm in

application/controllers/admin/affiliates/edit.php

and I want to create

application/controllers/admin/affiliates/add.php

Do I really have to type:

:o application/controllers/admin/affiliates/edit.php

Or is there a shortcut way to be like

:o CWD/edit.php?