This PR adds :swap command to interactive mode. Command swaps source language and target language.
Example:
└> $ trans en:fr -I
Translate Shell
(:q to quit)
English> :swap
Français> :swap
English>
Motivation
In the case of working with a pair of languages, there may often be a need to swap source and target languages. As far as I understand, these is no other way to work in shell mode with both, for example, en:fr and fr:en at the same time, but to open two tabs in terminal each for en:fr and fr:en. I suppose that :swap command can be useful for the described case.
Description
This PR adds
:swap
command to interactive mode. Command swaps source language and target language.Example:
Motivation
In the case of working with a pair of languages, there may often be a need to swap source and target languages. As far as I understand, these is no other way to work in shell mode with both, for example,
en:fr
andfr:en
at the same time, but to open two tabs in terminal each foren:fr
andfr:en
. I suppose that:swap
command can be useful for the described case.