iVim icon indicating copy to clipboard operation
iVim copied to clipboard

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

Open duianto opened this issue 3 years ago • 2 comments

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.

duianto avatar Dec 09 '22 14:12 duianto

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]}

sedm0784 avatar Apr 28 '23 09:04 sedm0784

@sedm0784 Thank you.

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

  • Copy the lines above
  • Start iVim
  • Edit the .vimrc file: :e .vimrc enter (the file will be created if it doesn't exist)
  • Paste: "+p enter
  • If iOS asks for permission to paste, click on: Allow Paste
  • Save the file and close iVim: :x enter
  • Start iVim. Now the buttons have been updated.

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

duianto avatar Apr 28 '23 18:04 duianto