Re: [dev][project] soap - a simple xdg-open replacement

2014-05-06 Thread Dmitrij D. Czarkoff
FRIGN said: > > You can. Use "text/html" mime type and a script to parse URLs. (You'll > > need to parse URLs anyway, if you want to do anything useful with them.) > > Well, Youtube-links don't end with .html. That's the problem with > MIME-detectors. I did not investigate issue in detail, but a

Re: [dev][project] soap - a simple xdg-open replacement

2014-05-06 Thread FRIGN
On Tue, 6 May 2014 21:58:40 +0200 "Dmitrij D. Czarkoff" wrote: > You can. Use "text/html" mime type and a script to parse URLs. (You'll > need to parse URLs anyway, if you want to do anything useful with them.) Well, Youtube-links don't end with .html. That's the problem with MIME-detectors. >

Re: [dev][project] soap - a simple xdg-open replacement

2014-05-06 Thread Dmitrij D. Czarkoff
FRIGN said: > mailcap files come pretty close, but only offer detection by mime (you > couldn't for instance parse youtube-links if you wanted or > differentiate between a file:// and http://-URL). You can. Use "text/html" mime type and a script to parse URLs. (You'll need to parse URLs anyway, i

[dev] [sbase] [PATCH] sort: simplify linecmp, rename curr => tail

2014-05-06 Thread Jakob Kramer
--- sort.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/sort.c b/sort.c index 203490b..a00e902 100644 --- a/sort.c +++ b/sort.c @@ -29,7 +29,7 @@ struct kdlist { }; static struct kdlist *head = NULL; -static struct kdlist *curr = NULL; +static struct k

[dev] [sbase] [PATCH] renice(1): renice is not PASTE

2014-05-06 Thread Jakob Kramer
renice(1): renice is not PASTE >From d19240961385f720e3422b619b47151232462418 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Tue, 6 May 2014 16:13:22 +0200 Subject: [PATCH] renice(1): renice is not PASTE --- renice.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renice.1

[dev] [sbase] [PATCH 3/3] sort: add support for "per-keydef" flags

2014-05-06 Thread Jakob Kramer
-k 2n is possible! >From fea5f42e048fb11c17413b455cfcc55c73fde701 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Tue, 6 May 2014 16:07:05 +0200 Subject: [PATCH 3/3] sort: add support for "per-keydef" flags --- sort.1 | 27 +++--- sort.c | 82 +++

[dev] [sbase] [PATCH 2/3] sort: ignore trailing newline while sorting

2014-05-06 Thread Jakob Kramer
without this it would sort a blank line *after* lines that have leading white space. >From 8dcf7e1a8070661280436c3cf8b5caa53a75dce6 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Tue, 6 May 2014 13:37:05 +0200 Subject: [PATCH 2/3] sort: ignore trailing newline while sorting --- sort.c | 3 ++-

[dev] [sbase] [PATCH 1/3] sort: work with signed integers as well

2014-05-06 Thread Jakob Kramer
next step is to parse input as decimals, but this is still needed so you get an error if you try to specify negative numbers as fields. >From e6eda6282fda98257925ffbaf71bac9b87c0d522 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Tue, 6 May 2014 13:35:06 +0200 Subject: [PATCH 1/3] sort: work wi

Re: [dev][project] soap - a simple xdg-open replacement

2014-05-06 Thread FRIGN
On Tue, 6 May 2014 14:06:21 +0200 Branislav Blaskovic wrote: > Just take a look at ranger and it's sub-app rifle. It does what you > are describing but have a lot of more options. > http://ranger.nongnu.org/ > Branislav Blaškovič > www.blaskovic.sk Ranger is a fine piece of software, but written

Re: [dev][project] soap - a simple xdg-open replacement

2014-05-06 Thread FRIGN
On Tue, 6 May 2014 02:36:58 +0200 "Dmitrij D. Czarkoff" wrote: > Am I missing something, or mailcap files already do that? mailcap files come pretty close, but only offer detection by mime (you couldn't for instance parse youtube-links if you wanted or differentiate between a file:// and http:/

Re: [dev][project] soap - a simple xdg-open replacement

2014-05-06 Thread Branislav Blaskovic
Just take a look at ranger and it's sub-app rifle. It does what you are describing but have a lot of more options. http://ranger.nongnu.org/ Branislav Blaškovič www.blaskovic.sk On Sat, May 3, 2014 at 5:18 PM, FRIGN wrote: > Good evening, > > unless you are using only terminals with dwm, you soo