Post B315ECRXwjed2cEdWq by aral@mastodon.ar.al
 (DIR) More posts by aral@mastodon.ar.al
 (DIR) Post #B30stczWqaD3qbYQAi by aral@mastodon.ar.al
       2026-02-05T14:03:51Z
       
       0 likes, 0 repeats
       
       Like global search and replace but don’t like surprises? Check out serpl – a handy little command-line app that gives you a visual preview of the changes you are about to make. You can even go in and remove the replacements you don’t want from the source previews. The regex support appears to be basic, however (I couldn’t get a negative lookbehind to work).https://github.com/yassinebridi/serpl#readme(Also, it appears they’re looking for maintainers. It’s written in Rust.)#searchAndReplace #findAndReplace #CLI #app #serpl #dev
       
 (DIR) Post #B30tBUQ3SOBiTRTjhw by doaamadhoun@mastodon.social
       2026-02-05T14:06:59Z
       
       0 likes, 0 repeats
       
       @aral Please, my child is between life and death. Please repost.
       
 (DIR) Post #B315ECRXwjed2cEdWq by aral@mastodon.ar.al
       2026-02-05T16:21:59Z
       
       0 likes, 0 repeats
       
       @ilmari 🤷‍♂️(One person’s inefficient is another’s good enough.) ;)
       
 (DIR) Post #B32qoTnXmyeqILHlmS by ramin_hal9001@fe.disroot.org
       2026-02-05T15:15:02.186955Z
       
       0 likes, 0 repeats
       
       @aral  for those of you using #Emacs it has a similar feature that can be run with M-x occur. You can also run the M-x multi-occur command to do find/replace across multiple files.In an occur-mode buffer, you can press e to enter “edit mode” and modify each matching line in place, then press C-c C-c to commit those changes to the file. This allows you to do search/replace using the ordinary C-M-% command.
       
 (DIR) Post #B32qoUv1ceEhlpnG52 by tusharhero@mathstodon.xyz
       2026-02-06T12:50:30Z
       
       0 likes, 0 repeats
       
       @ramin_hal9001 @aral I guess you just have to reinvent emacs but in a way that they are not easily interlope-able...
       
 (DIR) Post #B32ta7DhElH04uMPNw by ramin_hal9001@fe.disroot.org
       2026-02-06T13:19:00.711805Z
       
       0 likes, 0 repeats
       
       “I guess you just have to reinvent emacs but in a way that they are not easily interlope-able“@tusharhero  what are you talking about?! You can use Unix pipes to make everything interoperable!!! (Sarcasm)@aral
       
 (DIR) Post #B32ta8SybR5dwaW7qC by tusharhero@mathstodon.xyz
       2026-02-06T13:21:31Z
       
       0 likes, 0 repeats
       
       @ramin_hal9001 @aral That might be true for some programs. But most programs (TUI) are not at all designed for that.Vim, for example, is not at all like that. I don't know if you can at least pipe buffer regions into programs or not, probably can. But that is something I do all the time inside Emacs.(I know you are joking).
       
 (DIR) Post #B33268Tush04tIj7Ca by oantolin@mathstodon.xyz
       2026-02-06T14:56:57Z
       
       0 likes, 0 repeats
       
       @tusharhero @ramin_hal9001 @aral You definitely can pipe regions of a vim to buffer to a command. I'd say it's even encouraged among vim users.
       
 (DIR) Post #B334gWMzk40xJRxzzE by ramin_hal9001@fe.disroot.org
       2026-02-06T15:25:12.339989Z
       
       0 likes, 0 repeats
       
       “i’d love to see an (async-)eshell-command available everywhere in emacs“@mekeor   do you mean, like M-x eshell-command ?@tusharhero @aral @oantolin
       
 (DIR) Post #B334gYB11ZcWusNSam by tusharhero@mathstodon.xyz
       2026-02-06T15:25:55Z
       
       0 likes, 0 repeats
       
       @ramin_hal9001 @aral @mekeor @oantolin You go to write it and someone has already written it (I am talking about the function not the toot.)
       
 (DIR) Post #B334haGuiiMlhhd4fg by tusharhero@mathstodon.xyz
       2026-02-06T15:26:09Z
       
       0 likes, 0 repeats
       
       @ramin_hal9001 @aral @mekeor @oantolin happens a lot with emacs.
       
 (DIR) Post #B3364XEYHX2Itc23jU by ramin_hal9001@fe.disroot.org
       2026-02-06T15:37:00.951913Z
       
       0 likes, 0 repeats
       
       “and perhaps also bind a handy key in dired to a new dired-(async-)eshell-command and also perhaps in embark keymaps etc“@mekeor  I am trying to think of how that work differently from the ordinary dired-do-async-shell-command, which is bound to the & key in Dired mode. After all, Dired has access to all the same functions you can use from Eshell.@oantolin @tusharhero
       
 (DIR) Post #B3364YxbrUfkFe7YbQ by tusharhero@mathstodon.xyz
       2026-02-06T15:41:28Z
       
       0 likes, 0 repeats
       
       @ramin_hal9001 @mekeor @oantolin BTW here is something cool I learnt today. You can use the question mark (?) in the ! command of dired to make it put the filename there.So you can do stuff like.ffmpeg -i ? $(echo ? | cut -d'.' -f1).gif
       
 (DIR) Post #B3366F2qsUf141NDDE by tusharhero@mathstodon.xyz
       2026-02-06T15:41:49Z
       
       0 likes, 0 repeats
       
       @ramin_hal9001 @mekeor @oantolin BTW here is something cool I learnt today. You can use the question mark (?) in the ! command of dired to make it put the filename there.So you can do stuff like.ffmpeg -i ? $(echo ? | cut -d'.' -f1).gif#emacs
       
 (DIR) Post #B336bTXz0dtr1CpPWK by redstarfish@freesoftwareextremist.com
       2026-02-06T15:47:27.838628Z
       
       0 likes, 0 repeats
       
       @tusharhero Yeah, I learned it some days ago trying to use imagemagick from dired.  Very useful. You can also use * for substituting all the marked files.@ramin_hal9001 @mekeor @oantolin
       
 (DIR) Post #B336jGCkV4u9xDblyq by tusharhero@mathstodon.xyz
       2026-02-06T15:48:52Z
       
       0 likes, 0 repeats
       
       @redstarfish @ramin_hal9001 @mekeor @oantolin I was extracting text from pdfs using pdftotext and noticed the ? in the command suggested by dired (another useful feature).
       
 (DIR) Post #B33X81MlP6xfytlAuG by kickingvegas@sfba.social
       2026-02-06T20:44:37Z
       
       0 likes, 0 repeats
       
       @tusharhero Yep, once I learned about '?',  I started using Dired a lot more as effectively my shell.
       
 (DIR) Post #B359j7kQdAGRu8uMD2 by tusharhero@mathstodon.xyz
       2026-02-07T15:31:51Z
       
       0 likes, 0 repeats
       
       @mekeor @redstarfish @oantolin @ramin_hal9001 I guess something is missing in Emacs then :)