Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/password-history-improve…
Browse files Browse the repository at this point in the history
…ment' into develop
  • Loading branch information
stuartcryan committed Aug 19, 2016
2 parents b3db1c4 + 707811d commit bc8eb4e
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 46 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

Simple yet powerful integration with the Lastpass CLI so you can now get your passwords out of your Lastpass vault and straight into the clipboard from within Alfred.

##Version 1.4.6 update - Please Read
##Version 1.4.7 update - Please Read
###-----------------------------------------------------------

Ladies and gents, I am happy to present v 1.4.6 of the workflow. Before I continue, this has represented a SIGNIFICANT amount of work for me so if you like it and use it, please say thank you by donating towards my Diet Coke and cake fund. Any amount will do, whatever you feel the value is for you/your business/your time :)
Ladies and gents, I am happy to present v 1.4.7 of the workflow. Before I continue, this has represented a SIGNIFICANT amount of work for me so if you like it and use it, please say thank you by donating towards my Diet Coke and cake fund. Any amount will do, whatever you feel the value is for you/your business/your time :)

**Please note you *MUST* update your LastPass CLI version to 0.7.1 or higher as this update relies on new functionality that I worked with the LastPass team on integrating into the official CLI. Additionally version 1.4.6 and higher of the workflow WILL ONLY SUPPORT ALFRED 3 (and are not backwards compatible)**

Expand Down Expand Up @@ -55,6 +55,9 @@ This workflow (and the 1.4.3 update especially) represents many many hours effor

## History

* Version 1.4.7
1. Changed mechanism for copying to clipboard. Now marks passwords as transient, Alfred will no longer store them in the clipboard history.
2. Updated icon submitted by [Tom Conroy](https://github.com/tconroy) has been merged in (thanks for this Tom!)
* Version 1.4.6
1. Updated to work with Alfred 3 (long awaited official release of the long-in-testing beta version).
2. Username display functionality submitted by [Guillermo Moreno](https://github.com/gmq) has been merged in with some minor changes (thanks for your hard work Guillermo!)
Expand Down
Binary file modified lastpass-cli-alfred-workflow.alfredworkflow
Binary file not shown.
164 changes: 120 additions & 44 deletions workflow/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@
<false/>
</dict>
</array>
<key>201D2F2C-024E-4FA6-8B0C-CF32974E5077</key>
<array>
<dict>
<key>destinationuid</key>
<string>8C058736-CA55-492F-B2EC-8715A0266564</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>29656ADA-02CB-48FC-BC0E-20376CF8D8EF</key>
<array>
<dict>
Expand Down Expand Up @@ -120,7 +133,7 @@
<array>
<dict>
<key>destinationuid</key>
<string>8F65DC4B-ED8E-4EE0-A6E0-14C1F0CDF3A4</string>
<string>815177FB-CED1-42F3-AC5B-C1AC60735FA1</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
Expand Down Expand Up @@ -155,6 +168,19 @@
<false/>
</dict>
</array>
<key>815177FB-CED1-42F3-AC5B-C1AC60735FA1</key>
<array>
<dict>
<key>destinationuid</key>
<string>8F65DC4B-ED8E-4EE0-A6E0-14C1F0CDF3A4</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>C2D0FB11-55FC-4FD2-B32A-9923121F0321</key>
<array>
<dict>
Expand All @@ -172,7 +198,7 @@
<array>
<dict>
<key>destinationuid</key>
<string>1BAF402C-C953-4474-B777-549FB54BA190</string>
<string>201D2F2C-024E-4FA6-8B0C-CF32974E5077</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
Expand Down Expand Up @@ -352,6 +378,23 @@ end if</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>autopaste</key>
<false/>
<key>clipboardtext</key>
<string>{query}</string>
<key>transient</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.output.clipboard</string>
<key>uid</key>
<string>815177FB-CED1-42F3-AC5B-C1AC60735FA1</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -382,8 +425,9 @@ my $firstLine = &lt;$file&gt;;
close $file;
chomp $myFirstLine;
my $results = qx{export LPASS_ASKPASS=\"$firstLine\" &amp;&amp; export LPASS_AGENT_TIMEOUT="$loginTimeout" &amp;&amp; $lpass_exec show --sync=no -c --username $details[1]};
print $details[0];
my $results = qx{export LPASS_ASKPASS=\"$firstLine\" &amp;&amp; export LPASS_AGENT_TIMEOUT="$loginTimeout" &amp;&amp; $lpass_exec show --sync=no --username $details[1]};
chomp $results;
print $results;
}</string>
<key>scriptargtype</key>
<integer>0</integer>
Expand Down Expand Up @@ -599,27 +643,6 @@ exit 0;</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>lastpathcomponent</key>
<false/>
<key>onlyshowifquerypopulated</key>
<true/>
<key>removeextension</key>
<false/>
<key>text</key>
<string>{query}</string>
<key>title</key>
<string>Copied password to clipboard.</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.notification</string>
<key>uid</key>
<string>1BAF402C-C953-4474-B777-549FB54BA190</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -653,8 +676,9 @@ my $firstLine = &lt;$file&gt;;
close $file;
chomp $myFirstLine;
my $results = qx{export LPASS_ASKPASS=\"$firstLine\" &amp;&amp; export LPASS_AGENT_TIMEOUT="$loginTimeout" &amp;&amp; $lpass_exec show --sync=no -c --password $details[1]};
print $details[0];
my $results = qx{export LPASS_ASKPASS=\"$firstLine\" &amp;&amp; export LPASS_AGENT_TIMEOUT="$loginTimeout" &amp;&amp; $lpass_exec show --sync=no --password $details[1]};
chomp $results;
print $results;
}</string>
<key>scriptargtype</key>
<integer>0</integer>
Expand Down Expand Up @@ -691,6 +715,44 @@ print $details[0];
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>autopaste</key>
<false/>
<key>clipboardtext</key>
<string>{query}</string>
<key>transient</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.output.clipboard</string>
<key>uid</key>
<string>201D2F2C-024E-4FA6-8B0C-CF32974E5077</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>lastpathcomponent</key>
<false/>
<key>onlyshowifquerypopulated</key>
<false/>
<key>removeextension</key>
<false/>
<key>text</key>
<string></string>
<key>title</key>
<string>Copied password to clipboard.</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.notification</string>
<key>uid</key>
<string>8C058736-CA55-492F-B2EC-8715A0266564</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -973,35 +1035,35 @@ My thanks go out to LastPass for their awesome product and the new CLI!</string>
<key>xpos</key>
<integer>500</integer>
<key>ypos</key>
<real>610</real>
<integer>620</integer>
</dict>
<key>102D0B94-B4FC-4450-9B5B-9D76AA0FF12C</key>
<dict>
<key>xpos</key>
<integer>500</integer>
<key>ypos</key>
<real>750</real>
<integer>760</integer>
</dict>
<key>149C4CF2-82AE-4F6C-8D1D-726438E36F75</key>
<dict>
<key>xpos</key>
<integer>500</integer>
<key>ypos</key>
<real>860</real>
<integer>870</integer>
</dict>
<key>1B629A30-41FB-400F-89DC-8B35990D0F84</key>
<dict>
<key>xpos</key>
<integer>700</integer>
<key>ypos</key>
<real>860</real>
<integer>870</integer>
</dict>
<key>1BAF402C-C953-4474-B777-549FB54BA190</key>
<key>201D2F2C-024E-4FA6-8B0C-CF32974E5077</key>
<dict>
<key>xpos</key>
<integer>700</integer>
<key>ypos</key>
<real>380</real>
<integer>470</integer>
</dict>
<key>29656ADA-02CB-48FC-BC0E-20376CF8D8EF</key>
<dict>
Expand All @@ -1015,7 +1077,7 @@ My thanks go out to LastPass for their awesome product and the new CLI!</string>
<key>xpos</key>
<integer>300</integer>
<key>ypos</key>
<real>860</real>
<integer>870</integer>
</dict>
<key>5811419C-5D78-450A-8F28-46CC209BF760</key>
<dict>
Expand All @@ -1036,42 +1098,56 @@ My thanks go out to LastPass for their awesome product and the new CLI!</string>
<key>xpos</key>
<integer>300</integer>
<key>ypos</key>
<real>750</real>
<integer>760</integer>
</dict>
<key>815177FB-CED1-42F3-AC5B-C1AC60735FA1</key>
<dict>
<key>xpos</key>
<integer>700</integer>
<key>ypos</key>
<integer>270</integer>
</dict>
<key>8820573B-DB5E-4B65-9178-3DD86CF620CC</key>
<dict>
<key>xpos</key>
<integer>700</integer>
<key>ypos</key>
<real>750</real>
<integer>760</integer>
</dict>
<key>8C058736-CA55-492F-B2EC-8715A0266564</key>
<dict>
<key>xpos</key>
<integer>880</integer>
<key>ypos</key>
<integer>470</integer>
</dict>
<key>8F65DC4B-ED8E-4EE0-A6E0-14C1F0CDF3A4</key>
<dict>
<key>xpos</key>
<integer>700</integer>
<integer>880</integer>
<key>ypos</key>
<real>270</real>
<integer>270</integer>
</dict>
<key>A2718C33-DE84-4E0F-8A09-37DA3C9E8732</key>
<dict>
<key>xpos</key>
<integer>500</integer>
<key>ypos</key>
<real>500</real>
<integer>510</integer>
</dict>
<key>C2D0FB11-55FC-4FD2-B32A-9923121F0321</key>
<dict>
<key>xpos</key>
<integer>300</integer>
<key>ypos</key>
<real>440</real>
<integer>450</integer>
</dict>
<key>D049EE1A-03D1-4BDF-8920-EE8667E7365C</key>
<dict>
<key>xpos</key>
<integer>500</integer>
<key>ypos</key>
<real>380</real>
<integer>390</integer>
</dict>
<key>D21298B3-763D-48F9-A804-C3B06D3B70E7</key>
<dict>
Expand All @@ -1085,7 +1161,7 @@ My thanks go out to LastPass for their awesome product and the new CLI!</string>
<key>xpos</key>
<integer>700</integer>
<key>ypos</key>
<real>610</real>
<integer>620</integer>
</dict>
<key>DE8D285B-733F-4B2D-91DA-4613717E2005</key>
<dict>
Expand All @@ -1099,11 +1175,11 @@ My thanks go out to LastPass for their awesome product and the new CLI!</string>
<key>xpos</key>
<integer>300</integer>
<key>ypos</key>
<real>610</real>
<integer>620</integer>
</dict>
</dict>
<key>version</key>
<string>1.4.6</string>
<string>1.4.7</string>
<key>webaddress</key>
<string>http://technicalnotebook.com</string>
</dict>
Expand Down

0 comments on commit bc8eb4e

Please sign in to comment.