nmtake

joined 2 years ago
[–] nmtake@lemm.ee 1 points 11 months ago* (last edited 11 months ago)

Here is the screenshot:

Here's the screenshot.

I think it's worth to try if you just want to play the song from minibuffer.

[–] nmtake@lemm.ee 30 points 11 months ago

Please note that many users of FOSS are also developers or contributors. Who wants to report a bug or send a patch if the community is worse?

[–] nmtake@lemm.ee 11 points 11 months ago (2 children)
  1. Gimp to batch edit pictures in a script (I know about ImageMagick but still)

It seems to exist: https://www.gimp.org/tutorials/Basic_Batch/

[–] nmtake@lemm.ee 2 points 1 year ago

Bash should be fine. On typical Bash installation I think this will work (please try to understand each command line before you actually try):

$ cp ~/.bashrc ~/.bashrc.bak
$ cp ~/.bash_history ~/.bash_history.bak
$ printf 'set +o history' >> ~/.bashrc
$ printf "sudo apt update\nsudo apt upgrade\n" > .bash_history
$ (Press Ctrl+D to logout)

For the next bash session you can refer only the two commands from the history with Up/Down/C-p/C-n.

[–] nmtake@lemm.ee 4 points 1 year ago (2 children)

Long ago I made such restricted shell with filtering the shell command history file then disabling command history logging. With some shell scripting, I think you can get more sophisticated version. What shell are you using? (Bash, Fish, Zsh, etc.)

[–] nmtake@lemm.ee 3 points 1 year ago (1 children)

Not a direct solution but GET /api/v3/site may help.

[–] nmtake@lemm.ee 1 points 1 year ago (2 children)

The repository has Makefile so you can build the executable with make:

$ cd /tmp
$ git clone https://git.sr.ht/~leon_plickat/lswt
$ cd lswt
$ make
$ ./lswt
$ sudo make install (optional)
[–] nmtake@lemm.ee 9 points 1 year ago (5 children)
[–] nmtake@lemm.ee 8 points 1 year ago (1 children)

Some applications can't display some Unicode strings like s̵t̵r̵o̵k̵e̵, so replacing Markdown element like ~strike~ with Unicode equivalent (s̵t̵r̵o̵k̵e̵ ) may not be a good idea if you want portability. I opened your post in text editors and noticed that neovim-qt drops s̵t̵r̵o̵k̵e̵'s combining characters (issue on Github) and just displays stroke instead of s̵t̵r̵o̵k̵e̵; GUI Emacs with my font settings (Noto) doesn't combine the characters and displays s-t-r-o-k-e- (as I said, this may depends on font settings).

[–] nmtake@lemm.ee 1 points 1 year ago

Can you get the stack trace with (setq debug-on-error t)? The error means rx got wrong regex form like (rx (** 3 2 "a")) or (rx (** 3 nil "a")).

[–] nmtake@lemm.ee 2 points 1 year ago* (last edited 1 year ago) (1 children)

I don't know why the motion didn't work in Evil mode, but if the goal is deleting all invisible Unicode characters, I'd write a command like this:

(defun my/delete-invisibles-in-region (start end)
  "Delete invisible characters in the region specified with START and END."
  (interactive "r")
  (save-excursion
    (replace-regexp "\u200B\\|\u200C" "" nil start end))
    ;; (query-replace-regexp "\u200B\\|\u200C" "" nil start end))
  (deactivate-mark))
view more: ‹ prev next ›