translate-shell icon indicating copy to clipboard operation
translate-shell copied to clipboard

[Feature Request] Default to file when using './' or '/'

Open jdorel opened this issue 6 years ago • 1 comments

To read from a file, currently we need to specify -i.

Could we detect that the first characters are either / or ./ to read from a file ? So that we could use trans ./file or trans /home/user/file.

jdorel avatar May 25 '19 11:05 jdorel

Alternatively one can use the file:// scheme for specifying a file.

Currently the use of prefix / conflicts with the syntax of engine selecting (see #103). This default behavior may not be changed any time soon.

soimort avatar May 30 '19 12:05 soimort