[Pool] Help me to rename trash command of trash-cli?
Ken VanDine
ken at foresightlinux.org
Sat Jan 3 19:36:38 PST 2009
I have 0.1.10 packaged, which included those old command names. In my
Foresight package, I renamed the commands trash-{list,empty,put} for
tab completion :)
I am a fan of those names, and would be fine with trash-put.
--Ken
On Sat, Jan 3, 2009 at 7:37 PM, Andrea Francia <andrea at andreafrancia.it> wrote:
> 2009/1/4 Ben Finney <ben+freedesktop at benfinney.id.au>
>>
>> "Andrea Francia" <andrea at andreafrancia.it> writes:
>>
>> > * trash # trashes files and directories.
>> > * trash-empty # empty the trashcan(s).
>> > * trash-list # list trashed files.
>> > * trash-restore # restore a trashed file.
>
> [...]
>>
>> In the first one, "trash" is presumably to be treated as a verb,
>> operating on the object supplied as an argument. In the latter three,
>> "trash" is a noun topic, with "empty", "list", and "restore"
>> as verbs operating on the object supplied as argument.
>
> In the earlier versions trash-cli was using these commands (which are all in
> the form $VERB $OBJECT) :
>
> - trash <file>
> - empty-trash
> - list-trash
> - restore-trash
>
> Then I switched to the trash-* form to gain advantage from the tab
> completion.
>
>>
>> For consistency, I would expect the "put FOO in the trash" command
>> to follow the same form as the latter three. I suggest the command
>> form could be 'trash-put FOO'.
>>
>> > In the beginning I was persuaded to use the 'trash-file' name but I
>> > don't like it very much.
>>
>> For the reasons above, I don't like it either: it is inconsistent with
>> the others, departing from the '$TOPIC-$VERB $OBJECT' form established
>> by the others.
>
> This is the same reason I also prefer trash-put.
>
>>
>> > * trash-put
>> > * trash-put-in
>> > * trash-rm
>> > * trash-recycle
>> > * trash-to
>>
>> I recommend 'trash-put FOO' as the least ugly or confusing.
>
> Ok. Thanks.
>
> In the case you could redesign the entire command line interface what would
> be your choice?
>
> --
> Andrea Francia
> http://andreafrancia.blogspot.com/
>
> _______________________________________________
> Distributions mailing list
> Distributions at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/distributions
>
>
--
Ken VanDine
Foresight Linux
http://foresightlinux.org
More information about the Distributions
mailing list