Re: [9fans] acme/sam linewrapping off

2008-03-25 Thread Rudolf Sykora
I understand that a speadsheet would solve the situation, but...
Vim has always been sufficient for the task I described, having that one
particular feature.
If acme were able of the same, it would suffice me as well...

Ruda

On 24/03/2008, Robert Raschke [EMAIL PROTECTED] wrote:

 On 3/23/08, Rudolf Sykora [EMAIL PROTECTED] wrote:
  Another, even more compelling example is, when you want to look at some
  scientific data from some experiment.


 Maybe there's someone out there who has done a spreadsheet for Plan 9?

 I've never looked, are there any open source spreadsheets around that
 would lend
 themselves as a starting point?

 Robby




Re: [9fans] acme/sam linewrapping off

2008-03-25 Thread Hongzheng Wang
On Tue, Mar 25, 2008 at 3:33 PM, Rudolf Sykora [EMAIL PROTECTED] wrote:
 I understand that a speadsheet would solve the situation, but...
 Vim has always been sufficient for the task I described, having that one
 particular feature.
 If acme were able of the same, it would suffice me as well...

 Ruda


Then [EMAIL PROTECTED] may be a good choice for your problem :-)

 stefanha to 9fans

 I am porting Vim and have made the first tarballs available.  See
 http://vmsplice.net/9vim.html.

 If you are interested, please try it and let me know how it goes.  It
 is usable, but do not rely on it yet.

 Things that currently do not work:
  * Shell execution (including :sh, !, :make, vimdiff, man page
 viewing, and suspend)
  * Mouse
  * Some unicode characters appear not to be fixed width
  * Startup is slow

 Stefan

 PS: Please avoid flamewar :).


-- 
HZ



Re: [9fans] acme/sam linewrapping off

2008-03-25 Thread Charles Forsyth
 Well, [EMAIL PROTECTED] could definitely be a choice. But, doesn't it go 
 against the
 basic philosophy ... ??!

the response here usually follows these steps:

(1) at most a mild suggestion to try using the system somewhat as intended
(2) ignoring it

this is in contrast to affirmative-action companies such as Apple, where
a port of Vim to the iPhone and Touch would quickly be sensed by the
caveman intrusion detection system,
and Jobs would soon turn up to shame the ingrate in public,
and rip the device from those cheating hands.




Re: [9fans] acme/sam linewrapping off

2008-03-25 Thread Rudolf Sykora
I haven't said that to use Vim is bad. Vim is my most favourite editor. I am
myself happy to have Vim around in Plan9 (and am not alone for sure).
Nonetheless, it's bad to not have an alternative which would follow the
system's principles. Please read all I mentioned before. Vim does not follow
those and is more and more distant from them (adding more and more features,
becoming bloated). But now, there is not a Plan9-like editor suited for
editing e.g. aforementioned files with several (real-number) fields (it
simply gets wrapped and is unreadable then; using small fonts is not a
proper solution since a too small font renders the file unreadable again).
To be forced to use Vim right away is in my opinion sad. (Opposite to what
you propose: you have to use Vim, you have no other way == you can't ignore
it.)

R

On 25/03/2008, Charles Forsyth [EMAIL PROTECTED] wrote:

  Well, [EMAIL PROTECTED] could definitely be a choice. But, doesn't it go 
  against
 the

  basic philosophy ... ??!

 the response here usually follows these steps:

 (1) at most a mild suggestion to try using the system somewhat as intended
 (2) ignoring it

 this is in contrast to affirmative-action companies such as Apple, where
 a port of Vim to the iPhone and Touch would quickly be sensed by the
 caveman intrusion detection system,
 and Jobs would soon turn up to shame the ingrate in public,
 and rip the device from those cheating hands.





Re: [9fans] acme/sam linewrapping off

2008-03-25 Thread Rudolf Sykora
Thanks, I'll read it and see if it can be of help
R

On 25/03/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hola,

 i think you can take other approaches to solve your problems instead of
 using vim, or making acme behave like vim.

 see what others have done with acme:

 http://plan9.bell-labs.com/iwp9/papers/20.acme-trans.pdf

 may be that could give you more ideas, other perspectives, etc. about the
 tasks you do with those files how do you do them.

 may be if you want just compare some columns, or some rows, or look for a
 value, or change values, or whatever, you could write functions, regexp, etc
 which will make your tasks easier and more confortable to do. acme chording
 is really great when you get used to it.

 or even writting an acme client :), having a programmable environment
 gives you many options, original programmes could not imagine all the
 situations, but they were (and are) smart and included tools making you able
 to set the program to your needs.

 good luck :)

 gabi





Re: [9fans] acme/sam linewrapping off

2008-03-25 Thread Skip Tavakkolian
have you considered using sam to break each line into multiple lines
and then rejoining.  e.g. if you have a | separated record structure, you
could do something like:

,x/^.*\n/ {
s/\|/\n/g
s/\n/\n\n/
}

edit the fields, then rejoin before writing it back:

,y/\n\n/ x/\n/ c/|/
,x/\n\n/ c/\n/

fyi, i'm a casual sam user and there are probably better ways.




Re: [9fans] acme/sam linewrapping off

2008-03-23 Thread erik quanstrom
 Is there any way how to sensibly edit a file with long lines (eg. a table
 with many fields, like /sys/lib/lp/devices) using acme/sam? What I miss is a
 way to not wrap long lines when I need to concentrate
 on the different fields and a whole
 single line is a true representative of an item (a printer).

make the frame long enough to hold the whole line.

for example in acme, use a single column display and a tiny font.  you
can get one by middle clicking on this

Font /lib/font/bit/misc/ascii.5x7.font

- erik




Re: [9fans] acme/sam linewrapping off

2008-03-23 Thread erik quanstrom
 Thanks for the answer, although it did not please me... :(
 (In Vim, you only have to do :set nowrap and you are done... From time to
 time I find this rather useful.)
 Ruda

it's unreasonable for the lp configuration file to need lines 200 characters 
long.
i would think it would make more sense to talk about addressing lp's 
unreasonable
requirments rather than complaining about acme's lack of features.

- erik