Skip to content

frontend-inc/sheets

Repository files navigation

Sheets for Supabase

Explore and edit your Supabase tables in the terminal.


Sheets for Supabase


Setup

Create a .env file in the project directory (or export the variables):

SUPABASE_PROJECT_REF=your_project_ref
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key

Then launch:

sheets

You'll see a table picker. Select a table to browse and edit its data.

Navigation

  • h, j, k, l: Move the active cell
  • gg, G, 5G, gB9: Jump to the top, bottom, a row number, or a specific cell
  • 0, ^, $: Jump to the first column, first non-empty column, or last non-empty column in the row
  • H, M, L: Jump to the top, middle, or bottom visible row
  • ctrl+u, ctrl+d: Move half a page up or down
  • zt, zz, zb: Align the current row to the top, middle, or bottom of the window
  • /, ?: Search forward or backward
  • n, N: Repeat the last search
  • ma, 'a: Set a mark and jump back to it later
  • ctrl+o, ctrl+i: Move backward or forward through the jump list
  • q, ctrl+c: Quit

Editing

  • Enter or i: Edit the current cell
  • Enter or ESC: Save cell and return to navigation
  • Alt+Enter: Insert a newline within a cell
  • I: Edit from the start of the cell
  • c: Clear the cell and start editing
  • o, O: Insert a row below or above and start editing
  • Tab, Shift+Tab: In insert mode, commit and move right or left
  • v, V: Start a visual selection or row selection
  • y, yy: Copy the current cell, or yank the current row(s)
  • x, p: Cut the current cell or selection, and paste
  • dd: Delete the current row
  • u, ctrl+r, U: Undo and redo
  • .: Repeat the last change

Command Mode

Press : to open the command prompt:

  • :w save changes to Supabase
  • :wq or :x save and quit
  • :q quit
  • :tables go back to the table picker
  • :reload or :r reload the current table from Supabase
  • :goto B9 or :B9 jump to a cell
  • :help or :? show available commands

Installation

Install with Go:

go install github.com/maaslalani/sheets@main

Credits

Built on top of Sheets by Maas Lalani, a terminal spreadsheet application. The original vim-style navigation, editing, and TUI rendering come from that project.

License

MIT

About

Sheets for supabase TUI program

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages