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

Suggestion: Add typing-relevant bar above keyboard #175

Closed
AntonPieper opened this issue Apr 17, 2024 · 3 comments · Fixed by #180
Closed

Suggestion: Add typing-relevant bar above keyboard #175

AntonPieper opened this issue Apr 17, 2024 · 3 comments · Fixed by #180

Comments

@AntonPieper
Copy link
Contributor

I thought, maybe adding a bar above the keyboard for some actions (like auto complete) could be useful. The thing is, I also like simplicity and a simple user interface. So I am asking if this is a wanted feature?

Here is a quick sketch (of course this is not the design I would implement)
Screenshot_20240417-172914

@AntonPieper AntonPieper changed the title _Suggestion_ Add typing-relevant bar above keyboard Suggestion: Add typing-relevant bar above keyboard Apr 17, 2024
@markusfisch
Copy link
Owner

This could be a really nice feature that could potentially greatly enhance the editing experience, I think.

I didn't really explore this because most keyboards already have a shortcut bar (like in the screenshot), and I thought another one could probably be too much. But looking at your mock-up, it might work out! 🤔

Another thing to consider is that another bar over the keyboard would decrease the editor in landscape mode even further, maybe to just one line. Of course, editing in landscape has always been a bit problematic so maybe a simple solution would be to just show this bar when there's enough vertical space.

@AntonPieper
Copy link
Contributor Author

AntonPieper commented Apr 18, 2024

In landscape mode, one can currently use floating keyboards (at least GBoard supports it), problem being that custom in-app bars can't track the keyboard afaik. If you are using landscape mode though, the distance to the tab-key at the top is less anyway though so it might not be problem.
Screenshot_20240418-180931

You are right that most keyboard apps already have a general purpose auto-completion bar(which is useful in most cases, but maybe not in a code editor), which sadly takes away space. I thought, maybe one could hijack it, but I haven't found anything about that yet😢.

There also seems to be some way to tell the keyboard-app to not show suggestions without showing the password field, as Termux does this (but I also haven't found out how they do this yet, might be a combination of flags):
Screenshot_20240418-181806

Edit: In Termux, it might have something to do with these overridden methods

@markusfisch
Copy link
Owner

In landscape mode, one can currently use floating keyboards…

Well, yes, if the screen is big enough 😉 I figure that typing this way is probably really unpleasant 🤔 But yes, this is a solution, and I can't see a better way anyway.

…I thought, maybe one could hijack it, but I haven't found anything about that yet😢.

I thought the same but haven't found a way to this either.

There also seems to be some way to tell the keyboard-app to not show suggestions without showing the password field, as Termux does this…

And Termux is a really good example for that extra bar over the keyboard! I really like how it's working there.

Edit: In Termux, it might have something to do with these overridden methods

It certainly looks like it would… 🤔

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 a pull request may close this issue.

2 participants