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

Can't send tab character as input #472

Open
dradtke opened this issue Jul 1, 2024 · 0 comments
Open

Can't send tab character as input #472

dradtke opened this issue Jul 1, 2024 · 0 comments

Comments

@dradtke
Copy link

dradtke commented Jul 1, 2024

In usql I am unable to execute a simple query like this (Oracle in this example):

select 'hello   world' from dual;

That is because the space between hello and world is a tab character, and usql overrides the tab key to provide completion. This also fails when pasting from the clipboard or sending it from another process, i.e. Kitty:

$ kitten @ send-text --match=recent:1 "select 'hello\tworld' from dual;"
# select 'helloworld' from dual;

This is annoying because I have some string fields that contain a tab character, and this makes it impossible to query against those fields.

Is it possible to disable completion, permanently or temporarily, to allow tab characters to be used as input? Or alternatively, find a way to provide completion results only when the Tab key is pressed, and not when \t is received?

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

No branches or pull requests

1 participant