zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: Feature request: set extension for =( ) created file
Date: Sat, 24 Sep 2016 14:24:49 -0700	[thread overview]
Message-ID: <160924142449.ZM29236@torch.brasslantern.com> (raw)
In-Reply-To: <2225F03B-B940-40CF-8582-2FF912CA01E6@macports.org>
In-Reply-To: <E1D76D99-CFF8-4D74-A505-1106C8336DD1@macports.org>

On Sep 24,  4:36pm, Lawrence Velazquez wrote:
}
} > What time and effort? I guess it can be a beautiful few lines patch.
} > Modify name of file? Something like strcat. Parsing clever syntax that
} > would provide the extension? Also possibly basic.
} 
} A few lines (of C!) to reliably detect dozens/hundreds/thousands of file
} formats? Okay.

I think Sebastian is asking for a way to change the file name returned
by =(...) and still have it automatically removed, not a way to figure
out TO WHAT to change the name.

} (FWIW, file(1) -- a whole program/library made expressly for this
} purpose -- gives me hilariously bad results on a regular basis.)

Yes, "file" is generally a lot better at figuring out what a file is
NOT than what a file IS.  Still, it's the best thing we have lying
around.

On Sep 24,  5:06pm, Lawrence Velazquez wrote:
} Subject: Re: Feature request: set extension for =( ) created file
}
} > I looked at the temporary file and it has "zsh" in it, my fault. Vim
} > probably doesn't check for ".zshrc" / ".zshenv" but for *zsh*.
} 
} Close.

You can change the value of $TMPPREFIX to cause a different string to
be embedded in the file name, and a different location for the files
as well.


  reply	other threads:[~2016-09-24 21:32 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-24 17:51 Sebastian Gniazdowski
2016-09-24 17:55 ` Vadim Zeitlin
2016-09-24 18:43   ` Lawrence Velázquez
2016-09-24 19:30     ` Sebastian Gniazdowski
2016-09-24 19:55       ` Lawrence Velázquez
2016-09-24 20:14         ` Sebastian Gniazdowski
2016-09-24 20:36           ` Lawrence Velázquez
2016-09-24 20:44             ` Sebastian Gniazdowski
2016-09-24 21:06               ` Lawrence Velázquez
2016-09-24 21:24                 ` Bart Schaefer [this message]
2016-09-24 21:58                   ` Lawrence Velázquez
2016-09-25  0:05           ` Nikolay Aleksandrovich Pavlov (ZyX)
2016-09-25  5:17             ` Bart Schaefer
2016-09-25  6:17               ` Sebastian Gniazdowski
2016-09-25 15:21                 ` Lawrence Velázquez
2016-09-26 18:03                 ` Bart Schaefer
2016-09-25 16:58               ` Nikolay Aleksandrovich Pavlov (ZyX)
2016-09-25 22:37                 ` Bart Schaefer
2016-09-24 21:06         ` Bart Schaefer
2016-09-24 18:56   ` Sebastian Gniazdowski
2016-09-24 18:22 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=160924142449.ZM29236@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).