--- Martin Bähr <[EMAIL PROTECTED]> skrev: > On Sun, Oct 01, 2006 at 06:12:10PM +0200, Axel > Liljencrantz wrote: > > * The current history file format can't support > multiline commands > > stored as a single entry. Don't know what the > proper way to handle > > this is. > > one way i think would be to treat: > begin > foo > end > > and > > begin; foo; end > > as equivalent, so that in the historyfile they are > stored as one line, > but while editing they put you into multiline mode > with linebreaks > replacing the ;
This would imply that if you write a command like 'foo;bar', when you access it through the history, it will be displayed with one command on each line. Might feel a bit weird. > > > Changing the format means changing the filenmae, > or we'll get into > > version clashes with older fishes. > > i have a discussion item that will force a filename > change in anycase, > for a completely different and unrelated reason. > will bring it up in an extra mail. Ok. Is it something like timestamping commands, or giving each command a unique id? > > > Or maybe the history should work on a line-by-line > level? > > hmm, while editing it would be nice to access old > history entries within > a multiline command. but browsing the history should > keep the multiline > blocks intact, because otherwise most of the > advantage of multiline > editing is lost. Yes, that is probably true. > > if you have a function, you want to be able to make > changes to it. > if history worked on a line by line level then you'd > be forced to > reassemble it, which can be some work and make it > easy to mess up. True. > > greetings, martin. > -- > cooperative communication with sTeam - > caudium, pike, roxen and unix > offering: programming, training and administration > - anywhere in the world > -- > pike programmer travelling and working in europe > open-steam.org > unix system- bahai.or.at > iaeste.(tuwien.ac|or).at > administrator (caudium|gotpike).org > is.schon.org > Martin Bähr http://www.iaeste.or.at/~mbaehr/ > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users