unlocomqx / nextjs-virtual-routes

An Intellij plugin to simplify the display of Next.js routes in order to facilitate files navigation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js Virtual Routes

An Intellij plugin to modify the Next.js project tree to make it easier to navigate between files.

Features

Route files are respresented by name

  • page.tsx is modified to {route}.tsx
  • route.js is modified to {route}.server.js
  • page.js is modified to {route}.js
  • layout.tsx is modified to {route}.layout.tsx

Same for ts files

Routes

Nesting

page.server.js and page.js are nested under page.svelte

Nesting

Tabs

The tab titles are modified to show the route name

Tabs

Goto file

The goto file dialog is modified to show the new file names

goto-file.png

Todo

  • Add a setting toggle nesting
  • Handle layout files
  • Handle routes with params
  • Extend file search

About

An Intellij plugin to simplify the display of Next.js routes in order to facilitate files navigation


Languages

Language:Kotlin 100.0%