u/Akuseru2

Got tired of folder-shuffling while practicing data structures, so I wrote a small CLI for it
▲ 5 r/learnprogramming+1 crossposts

Got tired of folder-shuffling while practicing data structures, so I wrote a small CLI for it

been grinding queue/trie/lru/stack etc. for a few weeks and got annoyed by the same friction every day, making a new folder, copying my own boilerplate, accidentally peeking at yesterday's solution etc.

so i wrote `katac`. you pick what you want (ships with go and python templates), and `katac queue` drops a fresh queue + test into `days/day1/`. next day `katac queue` again gives you `days/day2/` from the same clean template so you can take another swing at it. `katac run` runs the tests.

made it mostly for myself but figured someone else doing the dsa grind might want it. only go and python templates are bundled right now, sorry if your language isn't there.

https://github.com/aldevv/katac

u/Akuseru2 — 4 days ago
▲ 2 r/commandline+1 crossposts

made a markdown previewer that opens in its own window, not your browser

got tired of every markdown previewer dumping the preview as a new tab in whatever browser I already had open. so I made one that pops a standalone chrome window, looks like a real preview pane.

https://github.com/aldevv/md-preview

install:

curl -fsSL https://raw.githubusercontent.com/aldevv/md-preview/main/install.sh | sh

usage:

mdp README.md          # render and open
mdp                    # fzf-pick a .md from cwd
mdp watch README.md    # auto-refresh on save (works with any editor)
mdp -e README.md       # preview AND open in $EDITOR

there's also a neovim plugin sibling that adds live scroll-sync if you want the rendered page to follow your cursor:

https://github.com/aldevv/md-preview.nvim

u/Akuseru2 — 4 days ago
▲ 15 r/neovim

made a markdown preview plugin that opens in its own window, not your browser

every markdown preview plugin I tried opens the preview as a new tab in whatever browser I already have open, which kills my workflow. I don't want my reading/research tabs getting interrupted every time I hit save.

so I made one that opens in a standalone chrome window that looks like a real preview pane.. ended up also building a standalone CLI (mdp) for the same thing outside neovim, turned out useful enough that I kept it.

plugin: https://github.com/aldevv/md-preview.nvim

cli: https://github.com/aldevv/md-preview

lazy spec:

{
    "aldevv/md-preview.nvim",
    ft    = { "markdown" },
    build = ":MdPreviewInstall",
    config = function() require("md-preview").setup() end,
}

defaults are <leader>mv / mV / mq (dark / light / close).

u/Akuseru2 — 4 days ago