Message539

Author retroj
Recipients dclemente
Date 2010-01-20.23:52:09
Content
Resolving relative paths automatically like this is a little problematic
because dispatching on the existence of a file, perhaps coincidentally
named with the same name as a website or webjump, is as good as
unpredictable in many circumstances.  Or take the opposite situation,
where you want conkeror to report "Not Found" when the file does not
exist, rather than just fudging it and trying the filename as an url.
(Maybe the caller of the command line is not a human, but another program,
so the user would want to see when there was some error with the filename
they gave, without the possibility of visiting any surprise websites.)
Also the fact that command line arguments are processed identically to the
find-url prompt is intentional and useful in its own right.

Note that absolute paths are unambiguous and currently supported, so you
can do:

  conkeror `pwd`/index.html

An approach that sounds good to me would be to have a command-line switch
that makes conkeror try to resolve arguments as files first, then fall
back to url/webjump/other-url-processors as you suggest.
History
Date User Action Args
2010-01-20 23:52:09retrojsetmessageid: <1264031529.68.0.613558370994.issue240@servo.cc>
2010-01-20 23:52:09retrojsetrecipients: + dclemente
2010-01-20 23:52:09retrojlinkissue240 messages
2010-01-20 23:52:09retrojcreate