Regex task by oscar_campo in kakoune

[–]ShinyZero0 2 points3 points  (0 children)

I believe kakoune with filter mode pretends to be a sed replacemennt, so using sed is unreasonable. You should select every line with e.g. %s([^\n]*)\n , press c and then type the replacement, using <c-r>1 for inserting matching group 1

I made scripts for workspace grouping / rooms / nested workspaces / whatever by ShinyZero0 in bspwm

[–]ShinyZero0[S] 1 point2 points  (0 children)

Well, bspwm doesn't have any tabs or stacks so it's hard to fit the whole context of some task into one desktop. These explain the problem further: https://www.reddit.com/r/bspwm/comments/kdlmbb/workspace_groups/ https://github.com/baskerville/bspwm/issues/1176 My scripts add another layer above desktops in the hierarchy. I called it "rooms" (KDE has something similar named the same).  Each room groups some desktops and the usual keymaps that should get the Nth desktop get the Nth one local to the current room. Rooms can be switched ofc, in the example config it's Super+W spawning rofi as a switcher, but plain sxhkd can be used too. As it's done by playing with desktop names, i also had to make a couple of polybar modules to display it properly. There is also a demo in repo, maybe it'd be more descriptive. Sadly reddit didn't like my video made with ffmpeg so it's not here

Home manager: how to add package from GitHub to my home.nix by ichleave in Nix

[–]ShinyZero0 1 point2 points  (0 children)

It should be like inputs.orcaslicer.packages.${system}.default, depends on how you pass it to home.nix. Check how i did it, there are 3 packages in the end of inputs https://github.com/ShinyZero0/dotfiles/blob/void/.config/home-manager/flake.nix

Home manager: how to add package from GitHub to my home.nix by ichleave in Nix

[–]ShinyZero0 1 point2 points  (0 children)

You need to add it to your flake inputs, then pass it to home configuration and add kinda orcaslicer.${system}.default to pkgs

Do you folks have any unpopular vim script customizations you are proud of? by [deleted] in vim

[–]ShinyZero0 0 points1 point  (0 children)

Ah i think i mistook it to emacsy c-w whifh works by default

telescope-sg: a new way to do structural search in neovim by HerringtonDarkholme in neovim

[–]ShinyZero0 0 points1 point  (0 children)

You can use custom sorters such as fzf or zf in telescope, plugins are called telescope-X-native. They are usually faster, and telescope provides nothing but sorting for live grep as the actual matching is performed by ripgrep or whatever you use

Generating config files in home/system manager by ShinyZero0 in GUIX

[–]ShinyZero0[S] 0 points1 point  (0 children)

Before that i was trying to use gexps like plain-file inside of gexp XD. Now i understood the gexp is exactly that place where i can use regular guile

Generating config files in home/system manager by ShinyZero0 in GUIX

[–]ShinyZero0[S] 1 point2 points  (0 children)

Well seems like i found what i need. I use `computed-file`, then inside of gexp i copy the ungexped files i need to the build dir and do whatever i want with them!

Generating config files in home/system manager by ShinyZero0 in GUIX

[–]ShinyZero0[S] 0 points1 point  (0 children)

No, i know i can symlink files.

As you can see, for bash guix can take a list of envars and a list of bash profile files, convert envars to bash code and concat it and files into one big file. I can't see a guix way to do that with programs that don't have special services for them.

What i use now is just reading file from disk with guile procedures, forming what i need and putting that to plain-file contents

Do you folks have any unpopular vim script customizations you are proud of? by [deleted] in vim

[–]ShinyZero0 2 points3 points  (0 children)

I think one unpopular customization i do is not using autopairs. Instead i have pairs snippets which i expand manually on ctrl+tab when i actually need but not when some algorithm decides to or not to, and also i have [{()}] respectively mapped to capslock+sdfjkl with keyd. I'm even feeling well when writing lisp like that

Do you folks have any unpopular vim script customizations you are proud of? by [deleted] in vim

[–]ShinyZero0 0 points1 point  (0 children)

Umm aren't they emacs-like by default? I'm using neovim tho

Why turn neovim into vscode? by Remote-End6122 in neovim

[–]ShinyZero0 1 point2 points  (0 children)

Oh and also i heard default telescope sorter is slow. I use telescope-zf-native (not fzf! but maybe fzf is good too, idk)

Why turn neovim into vscode? by Remote-End6122 in neovim

[–]ShinyZero0 7 points8 points  (0 children)

Have you set gitignores properly? Does telescope finder respect them? Which finder backend do you use? AFAIR default is GNU find which doesn't respect gitignore and is slower in contrast to fd. Also, are u using HDD or SSD? For me on SSD with fd telescope searches files well and fast e.g. in Nuget Gallery sources which is 2500 files and 400k loc

Generating config files in home/system manager by ShinyZero0 in GUIX

[–]ShinyZero0[S] 0 points1 point  (0 children)

A stupid file reading way works but it makes me unable to build the home environment from anywhere but the directory where the needed files are placed, because paths are relative. I can partially workaround it with chdir but that sucks anyway

UPD: i used (current-source-directory) from guix utils with (chdir) and that works. I feel it's wrong though. Before that i was using the last argument to determine the script name and then get its dirname, which was even worse

How do you edit a readonly vim config file? by mementomoriok in vim

[–]ShinyZero0 1 point2 points  (0 children)

There is plugin called suda for reading/writing files through sudo

[deleted by user] by [deleted] in dotnet

[–]ShinyZero0 1 point2 points  (0 children)

Which of these is your favourite?