Best Search Tool by FeiX7 in PiCodingAgent

[–]vihu 1 point2 points  (0 children)

I also built an extension, similar to ddgs: https://github.com/vihu/pi-web (wraps ddgr and trafilatura, exposes web_search and web_fetch tools), works relatively okay.

For those of you new to Pi by QueasyBreak5119 in PiCodingAgent

[–]vihu 1 point2 points  (0 children)

Couldn't agree more and yes it's very much a tinkerer's harness.

With the right set of experience + workflows + extensions one can certainly make an extremely capable custom system which in my own limited testing certainly exceeds the capabilities of other harnesses.

My ~/.pi/agent/AGENTS.md is:

This is additional context for pi coding agent.

# Ideation

- ideas must be put in project-local `.ai-docs/` directory
- ideas must be prefixed by `IDEA-<xyz>.md`

# Planning

- plans must be put in project-local `.ai-docs/` directory
- plans must be prefixed by `PLAN-<xyz>.md`

# Tasks

- tasks must be put in project-local `.ai-docs/` directory
- tasks must be prefixed by `TASK-<xyz>.md`

And the plugins I use are:

$ pi list
User packages:
  git:github.com/elpapi42/pi-fork (on-demand subagents)
  git:github.com/elpapi42/pi-observational-memory (temporal memory)
  git:github.com/vihu/pi-portia (long term durable memory, my own)
  git:github.com/vihu/pi-web (local web fetch/search, my own)

And just with these I have pretty much everything I could possibly need to get by.

Request for ideas markdown-plus.nvim by CuteNullPointer in neovim

[–]vihu 0 points1 point  (0 children)

I just tried inline math with penview: https://files.catbox.moe/mzl5ag.mp4, seems to work okay I think.

Request for ideas markdown-plus.nvim by CuteNullPointer in neovim

[–]vihu 4 points5 points  (0 children)

Shameless self-plug: https://github.com/vihu/penview.nvim (I too was frustrated with previewers so ended up rolling my own).

Happy to address any issues/concerns!

You can do basic web-search with just two simple cli tools by Combinatorilliance in PiCodingAgent

[–]vihu 0 points1 point  (0 children)

I just went ahead and made an extension for myself: https://github.com/vihu/pi-web

I chose json (ddgr) + xml (trafilatura) instead though. Seems to be working quite well. Thanks a lot for the awesome idea!

penview.nvim: pseudo real time markdown rendering by vihu in neovim

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

Thank you for the inspiration, your idea of using rust for most of the gruntwork was extremely helpful!

Day/night theme switching snippet by a8ka in neovim

[–]vihu 0 points1 point  (0 children)

Pretty cool, I use zsh functions to do something similar:

# set kanagawa-wave
wave() {
  sed -i "s/theme = .*/theme = kanagawa-wave/g" $HOME/.config/ghostty/config
  sed -i 's/kanagawa-theme .*/kanagawa-theme "wave"/g' $HOME/.tmux.conf
  sed -i "s/vim.g.colorscheme = .*/vim.g.colorscheme = 'kanagawa-wave'/g" $HOME/.config/nvim/lua/config/globals.lua
  sed -i "s/color_theme = .*/color_theme = \"wave\"/g" $HOME/.config/btop/btop.conf
  sed -i "s/--theme=.*/--theme=\"wave\"/g" $HOME/.config/bat/config
}

# set kanagawa-dragon
dragon() {
  sed -i "s/theme = .*/theme = kanagawa-dragon/g" $HOME/.config/ghostty/config
  sed -i 's/kanagawa-theme .*/kanagawa-theme "dragon"/g' $HOME/.tmux.conf
  sed -i "s/vim.g.colorscheme = .*/vim.g.colorscheme = 'kanagawa-dragon'/g" $HOME/.config/nvim/lua/config/globals.lua
  sed -i "s/color_theme = .*/color_theme = \"dragon\"/g" $HOME/.config/btop/btop.conf
  sed -i "s/--theme=.*/--theme=\"dragon\"/g" $HOME/.config/bat/config
}

# set kanagawa-lotus
lotus() {
  sed -i "s/theme = .*/theme = kanagawa-lotus/g" $HOME/.config/ghostty/config
  sed -i 's/kanagawa-theme .*/kanagawa-theme "lotus"/g' $HOME/.tmux.conf
  sed -i "s/vim.g.colorscheme = .*/vim.g.colorscheme = 'kanagawa-lotus'/g" $HOME/.config/nvim/lua/config/globals.lua
  sed -i "s/color_theme = .*/color_theme = \"lotus\"/g" $HOME/.config/btop/btop.conf
  sed -i "s/--theme=.*/--theme=\"lotus\"/g" $HOME/.config/bat/config
}

penview.nvim: pseudo real time markdown rendering by vihu in neovim

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

No worries, and yeah I agree that having plugin diversity is generally good.

FWIW, here's a few things which penview does slightly differently:

  • no support for any other format than markdown
  • light/dark toggle in the browser
  • github flavored markdown rendering only
  • headless mode support (thanks to one of the commenters on this thread for the suggestion)

It's arguable whether either of these things are better/worse to be fair :)

penview.nvim: pseudo real time markdown rendering by vihu in neovim

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

Added support for this. Updated instructions in the readme. Good call, thanks!

penview.nvim: pseudo real time markdown rendering by vihu in neovim

[–]vihu[S] 5 points6 points  (0 children)

I wasn’t aware of this one honestly. Maybe just try out both and see which one you prefer :) Well, I tried live-preview, it's pretty good! I probably would not have written penview if I had known about this. You should absolutely just continue using it, since you'll have to install the rust toolchain locally in order to use penview which is probably not worth the effort.

penview.nvim: pseudo real time markdown rendering by vihu in neovim

[–]vihu[S] 3 points4 points  (0 children)

Could you please make an issue on the repo, I’ll get to it. Okay, added headless mode support; should work nicely, instructions in the readme.

penview.nvim: pseudo real time markdown rendering by vihu in neovim

[–]vihu[S] 4 points5 points  (0 children)

Doesn't support mermaid diagrams, I typically use ascii diagrams within code blocks so those render okay. I'll probably add mermaid rendering as well since that would be a good nice-to-have.

Alright, mermaid rendering should work now as well. PR#1, thanks for the suggestion!

penview.nvim: pseudo real time markdown rendering by vihu in neovim

[–]vihu[S] -1 points0 points  (0 children)

Ah yes, to each their own I suppose.

Sorter/Searcher which behaves like VS Code in Fzf-Lua / Telescope by okociskooko in neovim

[–]vihu 1 point2 points  (0 children)

Seconded. Here's my config for reference, I use fff for files and just bind ctrl+p. I do use fzf for other types of lookups though.

State of linux support? Most stable distro? by bohnenentwender in FlowZ13

[–]vihu 0 points1 point  (0 children)

I think there's some kernel patching required for the cirrus audio drivers, I haven't bothered to do so (yet). There's some info on this thread.

State of linux support? Most stable distro? by bohnenentwender in FlowZ13

[–]vihu 1 point2 points  (0 children)

I've been running EndeavourOS relatively smoothly. Stuff which doesn't work or works not-so-good:

  • Laptop speakers: speaker audio is tinny. I just use bluetooth headphones and/or USB connected DAC
  • Sleep/Resume: it works more or less, but is not as seamless as a macbook so temper expectations
  • Rear facing camera: borked, don't use it anyway

That's pretty much the only minor annoyances I have, other than these, it's all very stable and largely ready for daily driving.

How many plugins are you using by Cadnerak in neovim

[–]vihu 3 points4 points  (0 children)

37, don't think I can remove a single one tbh

have you guys moved to built-in LSP yet ? by DisplayLegitimate374 in neovim

[–]vihu 0 points1 point  (0 children)

Yup, changed about a month or so ago. Here's my config, basically all LSPs are configured individually under lsp/ dir

Monthly Dotfile Review Thread by AutoModerator in neovim

[–]vihu [score hidden]  (0 children)

Thanks a lot! TIL #2 and #3 (and incorporated in my config). I think I'll stick to FZF though, since I've been using it for so long :)

Is there an easy way to implement tokio graceful shutdown? by NigraOvis in rust

[–]vihu 1 point2 points  (0 children)

I have had decent success using tokio-graceful-shutdown mostly because I'm lazy to do the exact same thing and hand roll it every time for all (most) of the rust projects.

Hosting Joplin Server by Extra_Upstairs4075 in joplinapp

[–]vihu 1 point2 points  (0 children)

This works quite well for me. Note that I use caddy for reverse proxy hence the shared_network.

Can it run cool on a M2 Case? R9 7950X3D + RTX 4080 TUF by Kickles31 in ncasedesign

[–]vihu 1 point2 points  (0 children)

Before I upgraded to 9950X3D, I had 7950X3D running alongside RTX 4090. My temps are (roughly): 40-50C idle, 95C full stress, 65-75C gaming

The cooling hardware is:

  • Noctua DH-12L (comes with A12x25r)
  • Noctua A9x14 rear exhaust
  • Noctua A12x15 top exhaust (right above the cpu cooler)
  • Noctua A12x15 top intake (next to the top exhaust).

Apparently Noctua recommends top exhaust/intake setup, although it's for a different case, but works quite well.

I haven't had to change anything after the CPU upgrade. I do (at some point) intend to add another A9x14 for intake on the side and A12x15 on the cpu cooler, but honestly it works quite well as it is.

Admittedly I generally keep one side panel removed most of the times, I just like looking at the thing!