Re: [9fans] Acme and Git

2017-02-15 Thread Erik Quanstrom
try writing the file?  On Feb 15, 2017 5:05 AM, Paul Lalonde wrote:I know I'm not the only acme user who uses Git extensively :-)Is there some way to tell if a file is changed on disk that is open in an editor window?  I frequently change branches and I often find

Re: [9fans] Acme and Git

2017-02-15 Thread Bakul Shah
go get 9fans.net/go/acme/Watch It watches the current dir and runs a given command if any file in this dir changes. Actually think of Watch more as inspiration! You may be better off relying on git — watch .git/HEAD (changes when you switch branches) and watch

Re: [9fans] Acme and Git

2017-02-15 Thread Micah Stetson
In plan9port, this script will re-load any clean window that differs from an existing file with the same name: ``` #!/usr/local/plan9/bin/rc cleanIDs = `{9p read acme/index | awk '$4 == 0 && $5 == 0 { print $1 }'} for (id in $cleanIDs) { nm = `{9p read acme/$id/tag | sed 's/ .*//'} if (test -f

Re: [9fans] Acme and Git

2017-02-15 Thread Paul Lalonde
Do you have a pointer to Russ's Watch? I quick dig shows I have poor Google-fu. Paul On Wed, Feb 15, 2017 at 12:23 PM Bakul Shah wrote: > May be use Russ'es Watch command? > > > On Feb 15, 2017, at 5:05 AM, Paul Lalonde > wrote: > > > > I know

Re: [9fans] Acme and Git

2017-02-15 Thread Bakul Shah
May be use Russ'es Watch command? > On Feb 15, 2017, at 5:05 AM, Paul Lalonde wrote: > > I know I'm not the only acme user who uses Git extensively :-) > Is there some way to tell if a file is changed on disk that is open in an > editor window? I frequently change

Re: [9fans] Acme and Git

2017-02-15 Thread Sigrid Haflinadóttir
"X e" works just as well for me. On Wed, Feb 15, 2017 at 3:34 PM, Steve Simon wrote: > Hi, > > I am a sam user who uses subversion (via a substandard OS). > > when I do an update I always do 'X/./e' to re-read all files - bit of a > sledgehammer > but at least it stops me

Re: [9fans] Acme and Git

2017-02-15 Thread Steve Simon
Hi, I am a sam user who uses subversion (via a substandard OS). when I do an update I always do 'X/./e' to re-read all files - bit of a sledgehammer but at least it stops me getting quite so angry at svn. -Steve

[9fans] Acme and Git

2017-02-15 Thread Paul Lalonde
I know I'm not the only acme user who uses Git extensively :-) Is there some way to tell if a file is changed on disk that is open in an editor window? I frequently change branches and I often find myself editing stale versions. I notice when comes time to Put, but that's a bit late. Any tips