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

[Feature Request] split layout, a là Swift Keyboard?

Open formula-spectre opened this issue 3 years ago • 10 comments

title. image something like this would be cool, but I understand if this is rejected

formula-spectre avatar Oct 21 '22 14:10 formula-spectre

@Julow

I also would like to see this layout as an option. It would be nice to have it similar to "Show NumPad", where we can have it with the following options:

  1. Never
  2. Only in Landscape Mode
  3. Always

moya2162 avatar Dec 28 '22 22:12 moya2162

This can already be accomplished with a custom layout.

Screenshot_20230125_082259_GitHub.png

All you need to do is grab your favorite layout xml from the source-code on the folder /res/xml/, add the property shift="3" (could be any number) to the key you want to add space to the left, and then paste the xml contents on the Custom layout field under Advanced options. Then, to quickly toggle between split and not split you can setup your secondary layout as the custom one and the primary layout as your favorite one.

Be warned the repository owner said this is an experimental feature and our custom layouts could break with updates.

allan-null avatar Jan 25 '23 11:01 allan-null

Cool! That was easier than I thought it would be! Is it possible to split the bottom row as well?

madrabbit90 avatar Sep 14 '23 22:09 madrabbit90

You can optionally re-define the bottom row in your layout, see for example how the Neo2 layout does that: https://github.com/Julow/Unexpected-Keyboard/blob/master/res/xml/latn_neo2.xml#L3 This attribute is set <keyboard bottom_row="false" ...> and an extra <row> is added. Be warned that the bottom row changes often and you might miss out on new features.

Julow avatar Sep 15 '23 08:09 Julow

Why did you close this issue? This is a commonly requested feature that I would like to have one day.

Julow avatar Nov 16 '23 20:11 Julow

sorry! since the dev said i could achieve it with xml and custom layout I thought it was all good (my bad on the whole being late thing); but if more people want this type of layout i'll reopen it no problem!

formula-spectre avatar Nov 17 '23 09:11 formula-spectre

+1 yes please 🙏

kingIZZZY avatar Nov 26 '23 14:11 kingIZZZY

In #491, I illustrate and give the XML of a layout (Landscape) that has keyboards on each side. I don't claim it is what you want, but do claim you could get what you want from it by imitation, if you work out the horizontal spacing. Reminders: ① Put the XML into effect by copying into clipboard, swiping Unexpected "gear" icon, specifying Custom layout, and pasting everything into the prompt. ② Make very gradual edits and try out, because there is no error reporting yet.

Spike-from-NH avatar Nov 26 '23 15:11 Spike-from-NH

I wonder if something like this could be implemented:

On every row of the keyboard layout, a <separator /> can be added.

By default, it does nothing, but when a "split keyboard" option is enabled, its position is used to split that row in two, one drawn on the left side of the screen and the other on the right.

Keys also get an optional extra field, say duplicate, which indicate that if a separator is used, that key would also be added once more at the start of the second part of the row. Some split keyboards tend to add central keys on both sides, and it would probably be needed for a space bar.

An even smarter option would be the ability to combine a split keyboard with a numpad option, making it so that when both are enabled, the numpad is drawn in the middle of the keyboard, between the two sides of the split keyboard.

slashdevslashurandom avatar May 19 '25 07:05 slashdevslashurandom

@slashdevslashurandom That's an excellent idea! Would you like to implement that ?

Julow avatar May 22 '25 21:05 Julow