From f0fcd48911124a749a22d2296a54b8a752a5f7c2 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Sun, 13 Jul 2025 20:12:35 -0700 Subject: [PATCH] simplify readme --- README.md | 70 ------------------------------------------------------- 1 file changed, 70 deletions(-) diff --git a/README.md b/README.md index 4713985..9757cf5 100644 --- a/README.md +++ b/README.md @@ -26,73 +26,3 @@ Example with the included sample database: ```bash go run main.go sample.db ``` - -## Keyboard Controls - -### Table List Mode - -- `↑/↓` or `k/j`: Navigate between tables -- `←/→` or `h/l`: Navigate between table list pages -- `/`: Start searching tables -- `Enter`: View selected table data -- `s`: Switch to SQL query mode -- `r`: Refresh table list -- `Ctrl+C`: Quit - -### Search Mode (when searching tables) - -- Type to search table names -- `Enter` or `Esc`: Finish search -- `Backspace`: Delete characters - -### Table Data Mode - -- `↑/↓` or `k/j`: Navigate between data rows (with highlighting) -- `←/→` or `h/l`: Navigate between data pages -- `/`: Start searching within table data -- `Enter`: View selected row in detail modal -- `Esc`: Return to table list -- `r`: Refresh current table data -- `q` or `Ctrl+C`: Quit - -### Data Search Mode (when searching within table data) - -- Type to search within all columns of the table -- `Enter` or `Esc`: Finish search -- `Backspace`: Delete characters - -### Row Detail Modal - -- `↑/↓` or `k/j`: Navigate between fields (Column | Value format) -- `Enter`: Edit selected field value -- `Esc`: Return to table data view -- `q` or `Ctrl+C`: Quit - -### Cell Edit Mode - -- **Readline-style Editing**: Full cursor control and advanced editing -- **Cursor Movement**: `←/→` arrows, `Ctrl+←/→` for word navigation -- **Line Navigation**: `Home`/`Ctrl+A` (start), `End`/`Ctrl+E` (end) -- **Deletion**: `Backspace`, `Delete`/`Ctrl+D`, `Ctrl+W` (word), `Ctrl+K` (to end), `Ctrl+U` (to start) -- **Text Wrapping**: Long values are automatically wrapped for better visibility -- `Enter`: Save changes to database -- `Esc`: Cancel editing and return to row detail - -### SQL Query Mode - -- **Advanced Text Editing**: Full readline-style editing controls -- **Dual Focus Mode**: Switch between query input and results with `Tab` -- **Query Input Focus**: - - **Cursor Movement**: `←/→` arrows, `Ctrl+←/→` for word navigation - - **Line Navigation**: `Home`/`Ctrl+A` (start), `End`/`Ctrl+E` (end) - - **Deletion**: `Backspace`, `Delete`/`Ctrl+D`, `Ctrl+W` (word), `Ctrl+K` (to end), `Ctrl+U` (to start) - - `Enter`: Execute query - - `Tab`: Switch focus to results (when available) -- **Results Focus**: - - `↑/↓` or `k/j`: Navigate between result rows - - `Enter`: View selected row in detail modal (editable for simple queries) - - `Tab`: Switch focus back to query input -- **Note**: Query results from simple single-table queries can be edited; complex queries (JOINs, etc.) are automatically detected and handled safely -- Type your SQL query (all keys work as input, no conflicts with navigation) -- `Esc`: Return to table list -- `q` or `Ctrl+C`: Quit