Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support SHOW query results and Y to copy row #146

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

bobchandler
Copy link

eg: SHOW VARIABLES LIKE 'innodb_buffer_pool_size';

Variable_name Value
innodb_buffer_pool_size 1073741824

@bobchandler bobchandler changed the title feat: support SHOW query results feat: support SHOW query results and Y to copy row Dec 18, 2024
@jorgerojas26
Copy link
Owner

Hello, thanks for the PR.

While i like the idea of the "copy as" feature, I think those are too many shortcuts to remember just for copying. I was thinking a better way to do it could be 'y' for copying the cell as text, 'Y' will copy the entire row as text (or maybe CSV) by default, and 'CTRL + y' would open a popup with a list of "copy as" options. What do you think?

@bobchandler
Copy link
Author

indeed, that is correct thinking to reduce shortcuts for copying.

@bobchandler
Copy link
Author

bobchandler commented Dec 23, 2024

6d1da1f: support show command, if not that feature, execute show command, 0 rows affected.
36a2934: y copy cell value, Y copy entire row.
203f4e0: add Ctrl+s to copy as SELECT WHERE, add Ctrl+u to copy as UPDATE, add Ctrl+i to copy as INSERT
09aa01a: In sql editor(c-e), use c-y to copy current sql.
49af011: tree group , copy node name, eg: database name, table name.
3f2996f: add copyas option
7d259d5: revert before c-i, c-s, c-u(203f4e0)

@bobchandler
Copy link
Author

@jorgerojas26 that is all feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants