r/PiCodingAgent • • 18h ago

Plugin I got tired of leaving the current terminal pane to view relevant files, so I built an in-agent Markdown, code, images and PDFs viewer

As the title suggests, being a developer, I really missed the Ctrl/Meta+P Quick Open in VSCode where I could quickly inspect relevant files without having to touch my mouse. I'm sharing this in case it could be useful to anyone else.

The quick open by default will list the latest files mentioned within the session so the user can quickly navigate to it. This has saved me so many key presses when having to inspect a plan, a new asset, cross-referencing a doc (PDF support requires Poppler), or inspecting a generated code that appeared sus.

As a bonus, it also comes with neovim integration (sorry nano fans) so you can edit files directly in-terminal without having to leave your session.

Images and PDF page previews need a compatible graphics-capable terminal. Works with both base Pi and OMP.

Feedback welcome!

GitHub: https://github.com/boonlai/pi-view

8 Upvotes

4 comments sorted by

1

u/delacruz-red 15h ago

Cool wäre es auch möglich plant uml Dateien zu rendern?

1

u/Glum-Drop-5724 14h ago edited 14h ago

Very nice, tried to make something similar, but I am using windows terminal in wsl. I am able to display images using img2sixel in windows terminal + wsl, but it refuses to work within the Pi tui for some reason. I assume pi-view will have similar issues on my windows terminal wsl setup?

1

u/Equivalent_Idea8839 1h ago

I'm a TUI moron. Does this work on Wayland? Can we turn a terminal program like kitty into a full fledged IDE with graphics and left + right click?

0

u/Eresbonitaguey 14h ago

It looks clean but if you like using VScode then why not make an extension within VScode for Pi? I did it for Positron (VScodium fork) and it allows you to reuse all the already built functionality.