Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(terminal): add neovim as a downloadable tool (#106484)

Marius Andrab24a7b4c7171
diff --git a/frontend/src/scenes/terminal/posthogFilesystem.ts b/frontend/src/scenes/terminal/posthogFilesystem.ts
index 655cf7ded54c..5d92e72395d5 100644
--- a/frontend/src/scenes/terminal/posthogFilesystem.ts
+++ b/frontend/src/scenes/terminal/posthogFilesystem.ts
@@ -117,7 +117,7 @@ open [path] opens a project file or folder in PostHog. With no path, it opens th
current folder. JSON files open their PostHog item, including files in /posthog/api.
Folders open in the Files tab when the simple side panel is enabled.
-Optional tools download on first use: node, pi, nyancat, and doom.
+Optional tools download on first use: nvim, node, pi, nyancat, and doom.
In Doom, W/S move, A/D strafe, left/right arrows turn, Space fires, E opens doors,
and Shift runs. Use Capture mouse to turn with the mouse; left-click fires.
@@ -173,6 +173,8 @@ Files are limited to 4 MiB. Use Ctrl+C to interrupt, Tab to complete, and the
mouse wheel for scrollback. Run busybox to see the installed Unix utilities.
jq 1.8.2 is installed for JSON queries and formatting.
nano 8.4 edits text with syntax highlighting. Ctrl+S saves; Ctrl+X exits.
+nvim installs Neovim on first use. Run nvim file to edit, press i to insert text,
+then Escape to return to normal mode. :w saves; :q quits.
mc opens Midnight Commander. Tab switches panels; F3 views, F4 edits, F10 quits.
Use Escape then a digit if your browser or keyboard captures function keys.
mcview, mcedit, and mcdiff also run directly from the shell.
diff --git a/frontend/src/scenes/terminal/terminal-packages.json b/frontend/src/scenes/terminal/terminal-packages.json
index 16b391979450..aee8628846aa 100644
--- a/frontend/src/scenes/terminal/terminal-packages.json
+++ b/frontend/src/scenes/terminal/terminal-packages.json
@@ -85,6 +85,19 @@
"commands": {
"nyancat": "/opt/posthog-packages/nyancat-1.5.2-r1/bin/nyancat"
}
+ },
+ "neovim": {
+ "name": "Neovim",
+ "version": "0.11.1-r1",
+ "file": "archives/neovim-0.11.1-r1-linux-i386.tar.gz",
+ "sha256": "afa616ab23afac13f33f8a1a45a0025e5892f49be879aca05ec3fa1db25e09b6",
+ "size": 9490313,
+ "archiveSize": 33024000,
+ "dependencies": [],
+ "commands": {
+ "nvim": "/opt/posthog-packages/neovim-0.11.1-r1/bin/nvim"
+ },
+ "baseUrl": "https://raw.githubusercontent.com/PostHog/terminal-assets/b6267668fd1f5cfbb431f19f6b834b79a75265c4"
}
},
"baseUrl": "https://raw.githubusercontent.com/PostHog/terminal-assets/745b60735f92fd480ff3aaf712b28c99ddd3221d",