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

Long press <space> key as <tab> #520

Closed
amsitlab opened this issue Jan 8, 2024 · 6 comments
Closed

Long press <space> key as <tab> #520

amsitlab opened this issue Jan 8, 2024 · 6 comments

Comments

@amsitlab
Copy link

amsitlab commented Jan 8, 2024

I very love this keyboard, but...
I have one question
Can we use long press key [space] as [tab] ?
For me, who use the Autocomplete feature on the editor (neovim + lsp) swipe from key [a] to top-left (as [tab]) is require many time than long press [space] as [tab]

I really want to contribute, but I have no experince on android dev
Thank for you and all contributor of this project.

@Julow
Copy link
Owner

Julow commented Jan 8, 2024

The swipe gesture is intended to be very efficient. Could you try setting a shorter swipe distance in the settings ?

@Spike-from-NH
Copy link
Contributor

I migrated from Hacker's Keyboard and agree that a swipe is much quicker than a long-press. @amsitlab, if the location of the swipe is inconvenient to you, the solution may be to create a custom layout. You can give TAB a dedicated key.

@amsitlab
Copy link
Author

amsitlab commented Jan 8, 2024

The swipe gesture is intended to be very efficient. Could you try setting a shorter swipe distance in the settings ?

Yes.. I tried
Still too difficult for me
Sometimes even typo when swipe from [a] to the left-up

I migrated from Hacker's Keyboard and agree that a swipe is much quicker than a long-press. @amsitlab, if the location of the swipe is inconvenient to you, the solution may be to create a custom layout. You can give TAB a dedicated key.

For me.. type [space] then [long press space as tab] is more faster rather than type [space] then pressing [other key]
If we can use [long press space as a tab] our thumb don't need to move to any key
Because autocomplete works after [space]

for Example:
ls [tab] <- for shell autocomplete directories
will be faster if you use
ls [space] [longpress space as tab]
rather than
ls [space] [other key]

@Spike-from-NH
Copy link
Contributor

@amsitlab, I strongly disagree that the default layout should change to facilitate the sequences you happen to generate! Again, the way to customize Unexpected to be perfect for you is through a custom layout.

My custom layout is here:
Julow custom qwerty, Portrait.txt
The line with key0="space" defines the space bar. You should change switch—forward to tab. Then you can execute your sequence by tapping space once, then again and swipe upward.

@Anarchtism
Copy link

I have a use case for long press actions;
For number input using a MessagEase layout. Since most of the keys already have swipe actions and switching to numbers mode chages the layout of the keyboard.

ANIHORTES(space) -> 7894561230

@Julow
Copy link
Owner

Julow commented Jun 29, 2024

You can use a custom layout with a modmap that maps Fn+space into tab. Then you can do a clockwise circle on the space bar, which will type the equivalent of Fn+space.

<modmap>
  <fn a="space" b="tab"/>
</modmap>

You can now configure the anti-clockwise circle for each key in custom layouts with the anticircle attribute.

I have no plans for long presses in the future.

@Julow Julow closed this as completed Jun 29, 2024
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

4 participants