Re: [dev] surf-0.6-searchengine

2013-08-06 Thread Markus Teich
Am 2013-08-07 00:04, schrieb Ari Malinen: The way I always get around this search vs. URI schema dilemma for URLs in my DNS search domain is by appending a slash to the end, which at least makes Chromium behave as expected. I added detection of url if there is slash at the end of line. You

Re: [dev] surf-0.6-searchengine

2013-08-06 Thread Ari Malinen
>The way I always get around this search vs. URI schema dilemma for URLs in >my DNS search domain is by appending a slash to the end, which at least makes >Chromium behave as expected. I added detection of url if there is slash at the end of line. On Tue, Aug 6, 2013 at 11:01 PM, Truls Becken wr

Re: [dev] surf-0.6-searchengine

2013-08-06 Thread Truls Becken
On 2013-08-06, at 21:35, Chris Down wrote: > On 2013-08-06 21:27, Truls Becken wrote: >> The advantage of the approach on the wiki is that you can have multiple >> search engines configured, or really, URL shortcuts with optional string >> substitution. Firefox has the same thing. > > I, for one,

Re: [dev] surf-0.6-searchengine

2013-08-06 Thread Chris Down
On 2013-08-06 21:27, Truls Becken wrote: > The advantage of the approach on the wiki is that you can have multiple > search engines configured, or really, URL shortcuts with optional string > substitution. Firefox has the same thing. I, for one, only really use one search engine, but I agree that

Re: [dev] surf-0.6-searchengine

2013-08-06 Thread Truls Becken
On 2013-07-31, at 10:40, Ari Malinen wrote: > I wrote patch which adds search engine integration. If you > provide url which is not valid then surf passes it to search > engine. I see this as better approach than the searchengines > patch from surf.suckless.org. The advantage of the approach on t

Re: [dev] surf-0.6-searchengine

2013-08-06 Thread Ari Malinen
Thanks for feedback. I improved the url detection a bit. Now it considers input as url if it has dot and doesnt contain spaces. It also considers "localhost" as url. Now the search string can contain dots if it also contains spaces. DNS search domains could be solved with DNS query but i think that

Re: [dev] surf-0.6-searchengine

2013-08-06 Thread Joerg Jung
Am 06.08.2013 um 10:51 schrieb Chris Down : > On 2013-08-06 10:31, Joerg Jung wrote: >> In you patch "not valid" means "contains no dot", this makes it impossible >> to search for something with a dot, e.g.: e.g. :) >> Maybe look for a (starting) space instead? > > If that's true, it also makes

Re: [dev] surf-0.6-searchengine

2013-08-06 Thread Chris Down
On 2013-08-06 10:31, Joerg Jung wrote: > In you patch "not valid" means "contains no dot", this makes it impossible > to search for something with a dot, e.g.: e.g. :) > Maybe look for a (starting) space instead? If that's true, it also makes it impossible to go to URLs that are covered by your DN

Re: [dev] surf-0.6-searchengine

2013-08-06 Thread Joerg Jung
Am 31.07.2013 um 10:40 schrieb Ari Malinen : > https://github.com/defer-/my-projects/blob/master/surf-0.6-searchengine.diff > > I wrote patch which adds search engine integration. If you dont > provide any arguments surf loads homepage. If you provide url which is > not valid then surf passes it

[dev] surf-0.6-searchengine

2013-07-31 Thread Ari Malinen
https://github.com/defer-/my-projects/blob/master/surf-0.6-searchengine.diff I wrote patch which adds search engine integration. If you dont provide any arguments surf loads homepage. If you provide url which is not valid then surf passes it to search engine. You can configure homepage and searche