Re: view .gnumeric files in mc (in console)

2016-08-31 Thread Mooffie
On 8/31/16, Mooffie  wrote:
> On 8/31/16, Fourhundred Thecat <400the...@gmx.ch> wrote:
>>
>> when run on the commandline, ssconvert needs output file
>
> The manual page for ssconvert says you can use fd://1 for standard
> output. Use this as the output file.

BTW, most systems support the /dev/fd/# pseudo files. So even if the
software doesn't have special support for stdout, you can always use
/dev/fd/1.

http://www.informit.com/articles/article.aspx?p=99706=15
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: view .gnumeric files in mc (in console)

2016-08-31 Thread Mooffie
On 8/31/16, Fourhundred Thecat <400the...@gmx.ch> wrote:
>> On 2016-08-31 10:51, Slava Zanko wrote:
>>
>> Hi Fourhundred,
>>
>> Try to use this:
>>
>> View=%view{ascii} ssconvert %f || xls2csv %f || strings %f
>>
>
> that obviously cannot work
>
> when run on the commandline, ssconvert needs output file

The manual page for ssconvert says you can use fd://1 for standard
output. Use this as the output file.
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: view .gnumeric files in mc (in console)

2016-08-31 Thread Slava Zanko
Try it:

View=%view{ascii} (TMP_FILE=${MC_TMPDIR}/view.; ssconvert
--recalc "%f" -T Gnumeric_stf:stf_assistant ${TMP_FILE} && cat
${TMP_FILE} && rm ${TMP_FILE}) || xls2csv %f || strings %f


>> On 2016-08-31 10:51, Slava Zanko wrote:
>>
>> Hi Fourhundred,
>>
>> Try to use this:
>>
>> View=%view{ascii} ssconvert %f || xls2csv %f || strings %f
>>
> 
> that obviously cannot work
> 
> when run on the commandline, ssconvert needs output file, and possibly
> also --export-type. The following command works for me:
> 
>   ssconvert --export-type=Gnumeric_stf:stf_assistant zzz.gnumeric zzz.txt
> 
> The question is, how to make it work inside mc?
> I don't want the output to go to a file. I want to view it in mc.
> ___
> mc mailing list
> https://mail.gnome.org/mailman/listinfo/mc
> 



signature.asc
Description: OpenPGP digital signature
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: view .gnumeric files in mc (in console)

2016-08-31 Thread Fourhundred Thecat
> On 2016-08-31 10:51, Slava Zanko wrote:
>
> Hi Fourhundred,
> 
> Try to use this:
> 
> View=%view{ascii} ssconvert %f || xls2csv %f || strings %f
> 

that obviously cannot work

when run on the commandline, ssconvert needs output file, and possibly
also --export-type. The following command works for me:

  ssconvert --export-type=Gnumeric_stf:stf_assistant zzz.gnumeric zzz.txt

The question is, how to make it work inside mc?
I don't want the output to go to a file. I want to view it in mc.
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: view .gnumeric files in mc (in console)

2016-08-31 Thread Slava Zanko
Hi Fourhundred,

Try to use this:

View=%view{ascii} ssconvert %f || xls2csv %f || strings %f


> Hello,
> 
> has anybody figured out, how to view gnumeric files in mc (in
> console/text mode)?
> 
> I am aware that this can be configured in /etc/mc/mc.ext, and I see
> there is already section for excel files:
> 
>   type/^Microsoft\ Excel
>   Edit=true
>   Open=(gnumeric %f >/dev/null 2>&1 &)
>   View=%view{ascii} xls2csv %f || strings %f
> 
> Gnumeric has a utility ssconvert for converting into other formats. Can
> I use it similarly as xls2csv in the example above?
> ___
> mc mailing list
> https://mail.gnome.org/mailman/listinfo/mc
> 



signature.asc
Description: OpenPGP digital signature
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc