Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

Long press <space> key as <tab>

Open amsitlab opened this issue 2 years ago • 5 comments

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]

  • Using unexpected Keyboard (swipe from [a] to top-left as [tab]) https://github.com/Julow/Unexpected-Keyboard/assets/10000281/c455837b-08d1-4e63-9421-8cf8cf091a22

  • Using android next keyboard ( long press [space] as [tab] ) https://github.com/Julow/Unexpected-Keyboard/assets/10000281/a3411088-0deb-4cad-9b0c-c6861cbfb4f6

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

amsitlab avatar Jan 08 '24 14:01 amsitlab

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

Julow avatar Jan 08 '24 17:01 Julow

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.

Spike-from-NH avatar Jan 08 '24 18:01 Spike-from-NH

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]

amsitlab avatar Jan 08 '24 22:01 amsitlab

@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.

Spike-from-NH avatar Jan 09 '24 00:01 Spike-from-NH

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

Anarchtism avatar Mar 03 '24 17:03 Anarchtism

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 avatar Jun 29 '24 22:06 Julow