termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
33.55k stars 3.54k forks source link

[Feature]: Expand soft keyboard popups to radial menus #3571

Open amaramth opened 11 months ago

amaramth commented 11 months ago

Feature description

The soft keyboard's popups are excellent, but they're limited to 1 per key. Swiftkey handles this with a popup menu that has multiple selections laid out horizontally, but Termux's ergonomic is more elegant. I propose expanding it to multiple popups accessible via swiping in different directions.

For example, using up = 0 this could define a three-lobed radial menu with ./ available in most of the up directions and ..., ?. splitting the rest.

{ key: '.', popup: { radial: [ \
  { macro: '. /', display: './' ,span:[ 0.8,0.2 ] }, \
  { macro: '. . .', display: '...' ,span:[ 0.2,0.5 ] }, \
  { macro: '? .', display: '?.' ,span:[ 0.5,0.8 ] } \
  ] } } \

It might be best to keep the location of the popup display the same, no matter the radial choice, both for clean visibility and ease of implementation.

romanovj commented 11 months ago

https://github.com/termux/termux-app/issues/3535

amaramth commented 10 months ago

https://github.com/termux/termux-app/issues/2624