<feed xmlns='http://www.w3.org/2005/Atom'>
<title>password-store/src/completion/pass.fish-completion, branch master</title>
<subtitle>Fork of https://git.zx2c4.com/password-store/about/ with support for pass-otp in the dmenu script
</subtitle>
<link rel='alternate' type='text/html' href='https://git.m-chrzan.xyz/password-store/'/>
<entry>
<title>Remove shebang from fish completion</title>
<updated>2021-06-14T22:13:46+00:00</updated>
<author>
<name>Dan Čermák</name>
<email>dcermak@suse.de</email>
</author>
<published>2021-06-14T21:03:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.m-chrzan.xyz/password-store/commit/?id=3dd14690c7c81ac80e32e942cf5976732faf0fb3'/>
<id>3dd14690c7c81ac80e32e942cf5976732faf0fb3</id>
<content type='text'>
Afaik fish shell completions don't need a shebang
(plus the script is not executable anyway)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Afaik fish shell completions don't need a shebang
(plus the script is not executable anyway)
</pre>
</div>
</content>
</entry>
<entry>
<title>fish-completion: don't print full path when PASSWORD_STORE_DIR is set</title>
<updated>2021-05-18T21:03:08+00:00</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2021-05-18T20:59:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.m-chrzan.xyz/password-store/commit/?id=4e73cdc4c376ad61d2e4858bc87cf01eab0dd403'/>
<id>4e73cdc4c376ad61d2e4858bc87cf01eab0dd403</id>
<content type='text'>
"__fish_pass_print" enumerates all files in the password store and
uses sed to strip their common prefix - the password store directory.
If $PASSWORD_STORE_DIR had a trailing slash, sed would fail to remove
the prefix. Fix this by canonicalizing $PASSWORD_STORE_DIR.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"__fish_pass_print" enumerates all files in the password store and
uses sed to strip their common prefix - the password store directory.
If $PASSWORD_STORE_DIR had a trailing slash, sed would fail to remove
the prefix. Fix this by canonicalizing $PASSWORD_STORE_DIR.
</pre>
</div>
</content>
</entry>
<entry>
<title>fish-completion: reuse "git" and "grep" completions</title>
<updated>2020-06-25T21:43:30+00:00</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2020-06-25T21:41:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.m-chrzan.xyz/password-store/commit/?id=06f499994071bb6131244218b25d637103afe1d5'/>
<id>06f499994071bb6131244218b25d637103afe1d5</id>
<content type='text'>
This makes fish complete commands starting with "pass git" as if they were
starting with "git".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes fish complete commands starting with "pass git" as if they were
starting with "git".
</pre>
</div>
</content>
</entry>
<entry>
<title>fish-completion: don't erase existing completions for pass</title>
<updated>2020-06-25T21:43:20+00:00</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2020-06-25T21:41:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.m-chrzan.xyz/password-store/commit/?id=e50b18a049c54fb9b8dc2507238c08c1c8bd3fa9'/>
<id>e50b18a049c54fb9b8dc2507238c08c1c8bd3fa9</id>
<content type='text'>
fish only loads pass.fish once, so there is no point to erasing them.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fish only loads pass.fish once, so there is no point to erasing them.
</pre>
</div>
</content>
</entry>
<entry>
<title>fish-completion: force some variables to be script-local</title>
<updated>2020-06-25T21:43:10+00:00</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2020-06-25T21:41:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.m-chrzan.xyz/password-store/commit/?id=3439edd8e6e3455c4735b91561372254a3c9fda4'/>
<id>3439edd8e6e3455c4735b91561372254a3c9fda4</id>
<content type='text'>
Unfortunately, a command "set x" without explicit scope overwrites the variable
"x" in the innermost scope it is defined in, if any.  This can cause problems
if the user defines the variable "x" as global or universal variable (which is
visible in all fishes).  Make sure to define a local variable so we use that.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Unfortunately, a command "set x" without explicit scope overwrites the variable
"x" in the innermost scope it is defined in, if any.  This can cause problems
if the user defines the variable "x" as global or universal variable (which is
visible in all fishes).  Make sure to define a local variable so we use that.
</pre>
</div>
</content>
</entry>
<entry>
<title>fish-completion: support completions for wrapper commands</title>
<updated>2020-06-25T21:43:00+00:00</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2020-06-25T21:41:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.m-chrzan.xyz/password-store/commit/?id=9ec2990e96031e617237ac4881288974a69b7522'/>
<id>9ec2990e96031e617237ac4881288974a69b7522</id>
<content type='text'>
There is no point to checking the command name, fish already does that.
Additionally fish knows about commands that "wrap" pass; those commands
should inherit pass's completions.

This commit enables fish&gt;=3.1.0 to provide proper completions for this function:

	alias p="PASSWORD_STORE_DIR=$HOME/.my-passwords pass"

or, equivalently,

	function p --wraps "PASSWORD_STORE_DIR=$HOME/.my-passwords pass"
		PASSWORD_STORE_DIR=$HOME/.my-passwords pass $argv
	end
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is no point to checking the command name, fish already does that.
Additionally fish knows about commands that "wrap" pass; those commands
should inherit pass's completions.

This commit enables fish&gt;=3.1.0 to provide proper completions for this function:

	alias p="PASSWORD_STORE_DIR=$HOME/.my-passwords pass"

or, equivalently,

	function p --wraps "PASSWORD_STORE_DIR=$HOME/.my-passwords pass"
		PASSWORD_STORE_DIR=$HOME/.my-passwords pass $argv
	end
</pre>
</div>
</content>
</entry>
<entry>
<title>fish-completion: remove obsolete flag</title>
<updated>2020-06-25T21:42:42+00:00</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2020-06-25T21:41:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.m-chrzan.xyz/password-store/commit/?id=3be8496c7488bce380e8072a98a353f9b90875a1'/>
<id>3be8496c7488bce380e8072a98a353f9b90875a1</id>
<content type='text'>
The -A/--authoritative flag no longer has an effect since fish 2.5 which
was released in 2017.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The -A/--authoritative flag no longer has an effect since fish 2.5 which
was released in 2017.
</pre>
</div>
</content>
</entry>
<entry>
<title>fish-completion: avoid printing errors with an empty password store</title>
<updated>2020-06-25T21:42:32+00:00</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2020-06-25T21:41:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.m-chrzan.xyz/password-store/commit/?id=46d26994d0ff6b7fdcc2b043b0186703c0026b06'/>
<id>46d26994d0ff6b7fdcc2b043b0186703c0026b06</id>
<content type='text'>
Reproduce by typing "pass &lt;TAB&gt;" in a shell launched like: HOME=`mktemp -d` fish

Fish prints an error on failing globs - except when used in one of the commands
"set", "for" or "count". Also quotes are unnecessary here.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reproduce by typing "pass &lt;TAB&gt;" in a shell launched like: HOME=`mktemp -d` fish

Fish prints an error on failing globs - except when used in one of the commands
"set", "for" or "count". Also quotes are unnecessary here.
</pre>
</div>
</content>
</entry>
<entry>
<title>fish: reduce completion runtimes</title>
<updated>2018-02-19T15:06:47+00:00</updated>
<author>
<name>Mathis Antony</name>
<email>sveitser@gmail.com</email>
</author>
<published>2018-02-19T15:01:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.m-chrzan.xyz/password-store/commit/?id=fab65bda88ea979dbbc49f3d856a1d14ee4f1296'/>
<id>fab65bda88ea979dbbc49f3d856a1d14ee4f1296</id>
<content type='text'>
Fish completion spends most of the time in calls to `sed` in for loops over
entries and directories. This patch removes the repeated calls to `sed`.

Signed-off-by: Mathis Antony &lt;sveitser@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fish completion spends most of the time in calls to `sed` in for loops over
entries and directories. This patch removes the repeated calls to `sed`.

Signed-off-by: Mathis Antony &lt;sveitser@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>completion: add new generate flags</title>
<updated>2014-05-08T02:57:16+00:00</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-05-08T02:57:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.m-chrzan.xyz/password-store/commit/?id=ba160d43eb84be181258c26aa66bcaf05964c909'/>
<id>ba160d43eb84be181258c26aa66bcaf05964c909</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
