Daily Shaarli

All links of one day in a single page.

April 13, 2021

A Vim Guide for Adept Users
thumbnail

Hello Neovim lovers,

Many of you liked the previous article of my series about learning Vim (or Neovim) from the ground up. Good news: the fourth part is out!

I explain in this article

  • How Vim regex work.
  • Useful keystrokes for INSERT mode and VISUAL mode.
  • How to insert special characters easily.
  • How to work with shell commands.
  • How to fold some content.
  • ... and more!

Any feedback (positive or negative) is more than welcome!

Here's the article.

reddit permalink

Very nice sci-fi art
Auto-mounting filesystems on-demand in a virtual folder with systemd
thumbnail

linux - Integration of afuse user-level automounter with sshfs as a systemd service spawned from login for local users - Unix & Linux Stack Exchange

Ends up creating a folder on the home directory which automatically creates virtual directories, e.g. if you ls to folder/user@server.com it will ssh to the respective server and mount it. Only works with key-based authorization (afaik) and you need to have the server mounted or connected at least once before to add it to known hosts (or disabled known hosts, but I don't recommend that).

I am having some troubles with it (stuck shell on opening a new terminal) which I believe is due to the service type being forking but sshfs/ssh not quite forking into the background.
A simple systemd mount unit (with systemd-automount) also works well.

Changing the file chooser with xdg-desktop-portal
thumbnail

Use ranger as chrome file picker dialog. GitHub Gist: instantly share code, notes, and snippets.