@jmbuhr@mastodon.online avatar

jmbuhr

@jmbuhr@mastodon.online

Computational Biochemist, PhD Student at the Heidelberg Institute for Theoretical Studies with a love for teaching, theatre, bouldering and movement.
Send otter videos 🦦

#rstats #python #science #compchem #biochem #linux #quarto #quartoPub #lua #neovim #foss

This profile is from a federated server and may be incomplete. Browse more on the original instance.

jmbuhr, to random
@jmbuhr@mastodon.online avatar

Today, I answer the question: "Should you choose Neovim as your first code editor as a beginner programmer?"

https://www.youtube.com/watch?v=dR00OugPlLc

jmbuhr, to random
@jmbuhr@mastodon.online avatar

My new video on why keyboard shortcuts are not just for speed is live (and has a fresh thumbnail image). Includes helpful Vim tricks :)

https://youtu.be/fbg7lsZjxew

b0rk, to random
@b0rk@jvns.ca avatar
jmbuhr,
@jmbuhr@mastodon.online avatar

@aadmaa @simontatham @b0rk One of the co-founders of GitHub is now working on something with a new spin on handling branches: https://gitbutler.com/
It lookes interesting, but I haven't tried it myself, yet.

llimllib, to random
@llimllib@hachyderm.io avatar

Messing around with observable framework made me want to have autocomplete inside fenced blocks in markdown.

Thankfully I use vim and somebody else has already solved this problem:

https://github.com/jmbuhr/otter.nvim/blob/main/doc/otter.nvim.txt

It was surprisingly easy to set up. It's always amazing when computers actually work

jmbuhr,
@jmbuhr@mastodon.online avatar

@llimllib Thanks for the shout out!
What language server are you using for observable? Might add this to the quarto-nvim config as well, since quarto also supports observable code.

jmbuhr,
@jmbuhr@mastodon.online avatar

@llimllib Thanks! I just added it to the quarto-nvim-kickstarter.

How did you get your tsserver to know about the Plot. methods in your screenshot?

Looks like observable themselves are building their own completion on tsserver (https://observablehq.com/blog/bringing-the-typescript-language-server-to-observable), but they do some tweaks, because observable of course comes with its own library and some syntax, not just plain javascript about which the regular tsserver will complain. But it's a great start!

jmbuhr,
@jmbuhr@mastodon.online avatar

@llimllib It doesn't do that so far, but I like the idea! In my experiments with ojs in quarto, I found that quarto does not like the imports in the js code, but the language server needs them. So a hidden preamble would be perfect.

fabianschicker, to random German

Kein Protest der Letzten Generation hat im Blaulicht-Bereich für so viel Nervosität gesorgt wie der angekündigte Bauernprotest am Montag. Aber die "Law and Order"-Fraktion bleibt handzahm.

Man könnte fast meinen, es wäre ihnen nie um Rettungsgassen gegangen...

jmbuhr,
@jmbuhr@mastodon.online avatar

@fabianschicker Weiß jemand, wo man günstig Traktoren kaufen kann? Asking for a friend...

Rechnet sich bei Mehrfachbenutzung sogar gegenüber Klebstoff.

ScienceGirl, (edited ) to mastodon

Hello ! I am making the jump from X to here. Too many of my and buddies left X. If you switched from X, how do you like it here?

jmbuhr,
@jmbuhr@mastodon.online avatar

@ScienceGirl Welcome on board! :)

emilyriederer, to random
@emilyriederer@mastodon.social avatar

Always

project:
type: website
preview:
port: 4321

to fix the preview port for Quarto, folks. It's the little things, but they can be life changing

jmbuhr,
@jmbuhr@mastodon.online avatar

@maelle @kirill @emilyriederer and it's also very handy when working on a remote server. That way, you can ssh-forward the same port every time and don't have to type a different number

andrew, to random
@andrew@fediscience.org avatar

oooh the upcoming v1.4 of supports image lightboxes so you can click on images to zoom. You can even link a bunch of images together to make a gallery! https://quarto.org/docs/prerelease/1.4/lightbox.html

jmbuhr,
@jmbuhr@mastodon.online avatar

@noamross You don't even have to wait for v1.4, it's already available as an extension (see https://quarto.org/docs/extensions/)

jmbuhr,
@jmbuhr@mastodon.online avatar

@andrew And manuscripts, those will clean up a bunch of links I had put in manually!
https://quarto.org/docs/manuscripts/

ct_bergstrom, to random
@ct_bergstrom@fediscience.org avatar

I love how Springer-Nature has hopped so unapologetically onto the grift train that they are trying to sell unframed "posters" (read: silly certificates of merit) to their authors for 189 bucks.

jmbuhr,
@jmbuhr@mastodon.online avatar

@ct_bergstrom only a matter of time until they start selling NFTs...

jmbuhr, to neovim
@jmbuhr@mastodon.online avatar

Shoutout to https://github.com/chrishrb/gx.nvim, a small but super useful, and underrated plugin

jmbuhr, to random
@jmbuhr@mastodon.online avatar

Just added a task to my todo list for today's coding session:

> "Mop up spillover from leaky abstraction and fix the leak"

Programming really is a lot like plumbing.

coolbutuseless, to random
@coolbutuseless@fosstodon.org avatar

gurus: does anyone know how to define a new chunk type?

e.g. say I wanted a cobol chunk

How can I

  • define handling the code in the chunk?
  • Access/handle the chunk options?
  • capture and return output for the final document

jmbuhr,
@jmbuhr@mastodon.online avatar

@coolbutuseless Yep, knitr would be the way to go. Though for languages that are not R or python, each chunk will get compiled on its own, so there is no context from other code chunks.

In case you want code completion for these different languages, you can enable this with https://github.com/quarto-dev/quarto-nvim in Neovim.

liwde, to random German

Feierabendhobby: Auf den Balkon gehen, um den Sommerregen zu riechen.

jmbuhr,
@jmbuhr@mastodon.online avatar

@liwde Durchradeln und alle Pfützen mitnehmen kann ich ebenfalls empfehlen

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • mdbf
  • thenastyranch
  • Youngstown
  • hgfsjryuu7
  • slotface
  • rosin
  • ngwrru68w68
  • InstantRegret
  • kavyap
  • osvaldo12
  • everett
  • DreamBathrooms
  • PowerRangers
  • normalnudes
  • magazineikmin
  • Durango
  • khanakhh
  • tacticalgear
  • vwfavf
  • ethstaker
  • GTA5RPClips
  • modclub
  • cubers
  • tester
  • cisconetworking
  • Leos
  • provamag3
  • All magazines