terrychou / iVim

A vim port to iOS.
596 stars 35 forks source link

Hard to type slash and question mark, key to close to screen edge #259

Open duianto opened 1 year ago

duianto commented 1 year ago

My iPhone case has a raised edge around the screen. This makes it difficult to type slash and question mark by swiping up and right or down and right, on the colon key (the right most key, above the ‘p’ key).

A possible solution

Currently there is about a two key gap in the middle.

image

One solution might be to remove the gap, and center the keys in the middle.

image

A one key gap on each side, seems like enough to make it a lot easier to type slash and question mark.

sedm0784 commented 1 year ago

I had this problem too. I worked around it by adding an extra key on the end of the row that doesn't have diagonal actions on it:

Screenshot 2023-04-28 at 10 47 09 am png

" Replace colon with backtick
isetekbd replace {'buttons':[{'keys':[{'title':'`',
                                     \'type':'insert',
                                     \'contents':'`'}],
                            \'locations':[0]
                            \}],
                \'locations':[9]}
" And add new button with colon/tilde
isetekbd insert {'buttons':[
                           \{'keys':[{'title':':',
                                     \'type':'insert',
                                     \'contents':':'}]},
                           \{'keys':[{'title':'~',
                                    \ 'type':'insert',
                                    \ 'contents':'~'}],
                           \'locations':[1]}
                           \],
                \'locations':[10,10]}
duianto commented 1 year ago

@sedm0784 Thank you.

For anyone else, that's new to iVim and wonders how to apply those commands.

The default buttons can be restored by calling: :isetekbd default The buttons update instantly without having to restart iVim.

Here's the documentation: https://github.com/terrychou/iVim/blob/d09cbb5f47e9088bbbcc32bb2f43834f4a0cf880/vim/runtime/doc/ios_commands.txt#L285