andreafrancia / trash-cli

Command line interface to the freedesktop.org trashcan.
GNU General Public License v2.0
3.53k stars 177 forks source link

Hitting return on trash-restore without entering a number results in unclear behavior #326

Open lukasvrenner opened 6 months ago

lukasvrenner commented 6 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

When restoring files using trash-restore, users are asked which files they would like to restore, and are able to enter a number. If there is only one option, 0 is the only input option. The behavior is unclear when return is pressed, without entering a number. With no input other than hitting enter, the program exits, printing out nothing, with a successful exit code (0). It is unclear whether or not the file is restored.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. A few options to mitigate this confusion are:

Describe the solution you'd like A clear and concise description of what you want to happen. In my opinion, the best option would be to implement all three of my proposals.

Additional context Add any other context or screenshots about the feature request here.

andreafrancia commented 3 months ago

Hi @lukasvrenner , About the options you considered:

Thank you