termux / termux/termux-api

Enhancements in termux-dialog

Open
#462 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Feature description

1). Spinner

--->Multiple dropdown menus with each individual titles
eg. termux-dialog -t group1 -v "command1, command2" -t group2 -v "command3,command4"

Options like above and it should create two drop down entries title group1 and group2. when we click group1 it will list command1 and command2 as sub dropdown menu.

2). Radio widget:
---> Multiple and parent-subchild radio widgets.
eg
○Radiobutton1
|-------○Subradiobutton1-1
|----- ○Subradiobutton1-2
○Radiobutton2
|------ ○Subradiobutton2-1
|----- ○Subradiobutton2-2

It can be used along with termux-url-opener or file-editor or any script that execute multiple functions.

For eg.
If i select Radiobutton1 it will execute all actions specified under Subradiobutton1-1 & Subradiobutton1-2; OR; If i select Subradiobutton1-2 it will execute only action specified under that button

3). Addition of new dialog widget: Buttons(OPTIONAL: Currently bottom sheet fulfills the need but a central popup with stylish buttons will be pleasant than bottom sheet)
eg. Running such widget will create a box menu popup exactly in center with buttons having titles and clicking on button will execute specific action in background.
[Note:It will be useful with termux-url-opener and termux-file-editor to predefine functions and while sharing we can execute different functions just by clicking button. eg: while sharing url button will popup: one button has title dowload that will transfer url to curl, wget, youtube-dl; second button has title bookmark that when clicked will add url to file.]

4.) New argument to predefine commans/functions to each and every termux-dialog widgets

Currently we have to write multiple if elif statements to execute predefined commands based on button selected from dialog boxes.

However addition of new feature to define command/functions while creating widgets.

eg. termux-dialog sheet -v "Command1 -c "wget $1", Command2 -c "youtube-dl $1""

Above will create a sheet with command1 and command2 options. When specific button is selected specified button is executed

Reference implementation

Have you checked if the feature is accessible through the Android API?
Do you know of other open-source apps that has a similar feature as the one you want? (Provide links)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing termux-dialog widget arguments and checking whether the requested controls and command execution are supported by the Android API. The issue combines spinners, radio widgets, buttons, and per-widget commands, so a maintainer should first define a single scoped feature and its behavior. Done would require an agreed scope, implementation location, and tests or manual checks, none of which the issue names.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
cli, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.