Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/target
.env
plans
opencodetmp
285 changes: 0 additions & 285 deletions PROJECT_PLAN.md

This file was deleted.

17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Once connected:
| ----- | -------------------------------------------------- |
| `Tab` | Switch focus between query editor and results grid |
| `?` | Toggle help popup |
| `Ctrl+Shift+B` / `Ctrl+\` / `Ctrl+4` | Toggle sidebar |
| `q` | Quit application |
| `Esc` | Return to normal mode / close popups |

Expand Down Expand Up @@ -101,7 +102,21 @@ Once connected:
| `e` | Edit cell |
| `/` | Search in results |
| `+/-` | Widen/narrow column |
| `=` | Auto-fit column |
| `=` | Fit/collapse column |

### Troubleshooting keybindings

If a key combo isn't working in your terminal, you can inspect what `tsql` is actually receiving:

```bash
tsql --debug-keys
```

To also print mouse events:

```bash
tsql --debug-keys --mouse
```

### Commands

Expand Down
17 changes: 14 additions & 3 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,24 @@

### Big tasks

### Minor tasks / fixes
Find an alternative way to fix this:

- The dw should only delete the next word (or from where we are to the end of the current word) but it's deleting the whole line. Deleting the whole line should be dd.
- Add mouse support to the help popup and all the pickers
```
┌Error (Enter to dismiss)──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│Cannot edit: no primary key detected. Run a simple SELECT from a table with a PK. │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
```

### Minor tasks / fixes

## Done

- Make the error into a popup instead of a new pane on the UI

- Add mouse support to the help popup and all the pickers
- The dw should only delete the next word (or from where we are to the end of the current word) but it's deleting the whole line. Deleting the whole line should be dd.

- The uuid fields look great but they should take less space when condensed by default (8 chars + the unicode ... instead of the literal one).

- Connection picker vs. connection management: when we open the app with no connection as param, instead of showing the connection manager, we want to show a connection picker, reusing the picker we already have for queries.
Expand Down
Loading