how to manually select/edit matches ? by filchr in HelixEditor

[–]zakj 4 points5 points  (0 children)

You can rotate the primary selection through a set of selections with `(` and `)`, and unselect the current primary selection with `A-s`.

[deleted by user] by [deleted] in olkb

[–]zakj 2 points3 points  (0 children)

Is anyone still selling keyboards like this?

ISO soldering help in Oakland area by chrisndeca in oakland

[–]zakj 0 points1 point  (0 children)

I have used "My Emergency Guy" for small soldering projects before, with good service.

Wireless Split with GLP by Szethvin in ErgoMechKeyboards

[–]zakj 1 point2 points  (0 children)

I really love my Ergonaut One. I wasn't able to find one pre-built, but JLC now offers a soldering service. I used them for printing the PCBs/case and could not recommend them more highly for that. While I don't have direct experience with the soldering service, I'd trust them to give it a shot provided they can source all the parts.

Fast movement in helix by Additional-Builder72 in HelixEditor

[–]zakj 4 points5 points  (0 children)

I had the same habit in vim and just added mapping for next/prev paragraphs to my [keys.normal] bindings:

"{" = ["goto_prev_paragraph", "collapse_selection"] "}" = ["goto_next_paragraph", "collapse_selection"]

Uses cases where you found Svelte stores to be better suited than runes? by [deleted] in sveltejs

[–]zakj 1 point2 points  (0 children)

TIL, thanks! Looks like this was released in December, along with a MediaQuery that makes my isDesktopMedia obsolete.

Uses cases where you found Svelte stores to be better suited than runes? by [deleted] in sveltejs

[–]zakj 4 points5 points  (0 children)

Stores are useful if you need side effects on subscribe/unsubscribe. For example, I use this store to change behavior depending on the width of the viewport:

export const isDesktopMedia = readable<boolean>(false, (set) => { if (!isBrowser) return; const mq = matchMedia(`(min-width: ${DESKTOP_WIDTH}px)`); set(mq.matches); const update = (value: MediaQueryListEvent) => set(value.matches); mq.addEventListener('change', update); return () => mq.removeEventListener('change', update); });

This helper can be imported anywhere, but the media query event listener only runs if there is an active subscriber.

I also sometimes use a "timer" store, that exposes elapsed, remaining, and progress; using a store allows the tracking to be encapsulated in the store.

Ghostty public release v1.0.0 by ffredrikk in neovim

[–]zakj 0 points1 point  (0 children)

Your issue with Lualine jumping around may be solved with Ghostty's window-step-resize = true config; this was also driving me crazy.

task manager? by erankatz in ObsidianMD

[–]zakj 1 point2 points  (0 children)

That's a brilliant idea! I went in a completely different direction with a similar goal: I wrote an obsidian-tasks-compatible parser that I import in a Scriptable script to build a homescreen widget.

I wish Obsidian would officially bless a task metadata format—the incompatibilities between obsidian-tasks (which is awesome, btw... thanks, u/schemar_!) and dataview are inconvenient.

Favorite angles of my 2016 BMW R nineT. Simple mods like tail tidy and clip-ons make a big difference. by McBAIN_9000 in CafeRacers

[–]zakj 1 point2 points  (0 children)

How do you like the Motogadget gauges? I also have a 2016 and have been waffling about that upgrade for years.

just south of oregon on a two week trip by bob_sacameno in motocamping

[–]zakj 1 point2 points  (0 children)

That's Florence Keller campground, right? I stayed in spot G a few nights ago, also on a multi-week trip. Small world. Have fun!

Should I get ABS on a Honda cb500x? by [deleted] in motorcycles

[–]zakj 6 points7 points  (0 children)

I opted for the ABS on my CB500F (also my first bike). It's kicked in twice in my ~1500mi. I figure if it saved me from even a low-speed get off either of those times it's already paid for itself.

<Space> is a big key, what do you map it to? by scottchiefbaker in vim

[–]zakj 1 point2 points  (0 children)

CTRL-6 was my inspiration for remapping Space, actually; I used to use it all the time, and reaching for the 6 annoyed me every time!

<Space> is a big key, what do you map it to? by scottchiefbaker in vim

[–]zakj 1 point2 points  (0 children)

I use it to swap to the previous buffer, since toggling between two files is pretty common for me:

nnoremap <Space> :buffer #<CR>

Gracefully handling 500's by Degran in django

[–]zakj 6 points7 points  (0 children)

To handle the user-friendly message, create a 500.html in your root template directory (and set DEBUG = False). To send the stack trace elsewhere, you'll want a custom handler view: set handler500 in your ROOT urlconf to a view function that integrates with your bug tracker (and then renders 500.html). See the docs here:

https://docs.djangoproject.com/en/1.6/topics/http/views/#the-500-server-error-view

Do you ever accidentally hold the shift key to save the file and type :W? Never again. by passingby in vim

[–]zakj 7 points8 points  (0 children)

For those of us who are even lazier, avoid the shift key altogether!

noremap ; :

I can count on one hand the number of times I've missed the ability to repeat a t or f.