Jump to content

stuartcryan

Member
  • Content Count

    131
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by stuartcryan

  1. Installed and works, thanks for the effort!

    I've noticed an issue with searches containing more than one word?

     

    edit: forgive me for linking the images like this, they look huge when linked thru the forum editor...

    successful-search (password was copied) - http://i.imgur.com/h3v9ruC.png

    not-found (expected) - http://i.imgur.com/2YvdOUg.png

    lastpass-cli-not-installed (weird) http://i.imgur.com/LIFZKI3.png

    As I've done the first two searches, the result of the third search is impossible.

    Apologies if this has been reported before or is noted somewhere...

     

    Also, a trivial typo I must report for the sake of perfection (by default)... - http://i.imgur.com/73L4nsj.png 

     

    Howdy my good man, so sorry I missed this.

    I have logged two bugs for you:

    1. Weird search issue --> https://github.com/stuartcryan/lastpass-alfred-workflow/issues/12

    2. Shameful SHAMEFUL typo LOL --> https://github.com/stuartcryan/lastpass-alfred-workflow/issues/13

     

    Thank you for reporting them, I have a week off as of this evening so hopefully will be able to get to them.

    Cheers,
    Stuart
  2. H

     

    i am not a technical person and don't know anything about capture:tiny, homebrew etc. But I have installed everything and i am on the stage of logging in pinentry :)

     /usr/local/bin/lpass login [--trust] [--plaintext-key [--force, -f]] USERNAME

     

    i am hesitant to ask, and you can laugh or beat me to death but I have gathered strength to ask this :

     

    is there a risk of my master password getting compromised this way? There is a lot going on in CLI and i don't know what all code my MasterPassword would go through and which host/domain these scripts might connect from background. I appreciate this fantastic workflow and don't doubt you at all. its just that i want to know the background work these scripts would do. 

    Apologies if i offended you or anybody.

     

    Regards,

    Jay

    Hi Jay,

    The workflow itself does not do any storage of passwords in any way shape or form.

     

    Really it comes down to the CLI that has been written by the lastpass team and how much you trust them/it. Essentially all this workflow does is leverage the content within the CLI that Lastpass provides.

     

    Therefore I would say you would need to make an assessment as to how much you trust that LastPass has put together a safe CLI. Having said that if you trust them enough to use their other browser plugins, I foresee no issue why their CLI should be any different.

     

    And no worries at all, no offence taken, it is good to be diligent in these matters.

    Cheers,
    Stuart
  3. Excellent, and thank you. One comment so far (15 minutes of playing with it) is your maps are google.maps.au, so I went and relocalized for my country. 

    Suggestion - can I add in another common location - for me, it's gym. Some mornings i head to work, some mornings I stop first at gym. I guess I can just plug in gym postal code, but a feature to add other favorites (or search address book) would be cool. 

     

    Thanks again.

    OOOH noted, I have logged two issues on github.

    1. Don't assume .com.au need to look at some sort of localisation --> https://github.com/stuartcryan/advanced-google-maps-alfred-workflow/issues/1

    2. Add additional locations dynamically --> https://github.com/stuartcryan/advanced-google-maps-alfred-workflow/issues/2

     

    I will try to get to these in my next round of updates :).

    Cheers,
    Stuart
  4. @stuartcryan -

     

    I'm on the bleeding edge of iTerm I think (Build 2.9.20150812-nightly)

     

    As for the new feature - would it be like a boolean you configure at the top of the script? Or actually a different script? I want to understand what "all or nothing" means, I don't mind if it's not configurable in a UI, but would love a way to be able to quickly change it in the custom script code.

     

    Also, this is funny, but I'm actually experiencing different results whether I'm cmd+tabbing away from that hotkey window or if I'm hiding it with the hotkey itself (I get a new tab in a new window vs. new tab in the hotkey profile window). This actually is related to the iTerm bug I posted, haha

     

    Thanks.

    Howdy my good man,

    Any chance you could do a screen recording of the issue (and upload to youtube as private? or alternatively I can set up an SFTP location for you).

     

    Just want to get a better idea of how it all works as I haven't used the quake feature before.

    Cheers,
    Stuart
  5. Hi All,

    As per a request submitted on Github, I have updated to add support for FirefoxDeveloperEdition and Webkit Nightly Builds to the workflow.

     

    New version is 1.2 and is available here --> https://github.com/stuartcryan/defaultbrowser-alfred-workflow/blob/master/set-default-browser-alfred-workflow.alfredworkflow

     

    #enjoy

  6. @stuartcryan -

     

    I'm on the bleeding edge of iTerm I think (Build 2.9.20150812-nightly)

     

    As for the new feature - would it be like a boolean you configure at the top of the script? Or actually a different script? I want to understand what "all or nothing" means, I don't mind if it's not configurable in a UI, but would love a way to be able to quickly change it in the custom script code.

     

    Also, this is funny, but I'm actually experiencing different results whether I'm cmd+tabbing away from that hotkey window or if I'm hiding it with the hotkey itself (I get a new tab in a new window vs. new tab in the hotkey profile window). This actually is related to the iTerm bug I posted, haha

     

    Thanks.

    Good to know on the version I will have a squiz and see what I can come up with.

     

    I was actually thinking along the lines of a boolean in the script itself (rather than a separate script). So I think that would suit exactly what you are looking for.

     

    And that is strangeeeee I might have a play and see if I need to ask for some extra applescript additions in iTerm to help get around it even in the long term.

    Cheers,
    Stuart
  7. I'm using iTerm's "quake window" feature (I have a specific half-screen sized window,that drops when I hit the `~` (tilda) button). This opens a new tab in that profile, but doesn't activate the actual window.

     

    It may be related to this bug I previously opened for iTerm, which is sort-of related to activating the "hotkey profile".

     

    I would also be interesting to be able to choose whether the script ( opens a new tab / reuses one tab *it opened* / opens a window / reuses one window it opened ). Don't know if that's feasible, but I would definitely choose a reused tab/window instead of a new one every time.

     

    Thanks!

    Hi Maddog,

    Can I please ask, what version of iTerm are you running? I will have to have a look as that may require some additional logic (I will have to play with the feature as I have not used it before).

     

    Also with regards to the new feature, that is possible but it would be on an all or nothing basis, i.e. it can't really be set at run time. So are you looking for a set one off to change how the script as a whole runs or are you looking for something you can change each time it runs depending on what behaviour you would like at that time (just wanting to clarify, as the latter is not really possible).

    Cheers,
    Stuart
  8. Appreciate the user experience focus! I have a question, using 1password with alfred, it lets you launch a website (already logged in). Something like "1p evernote login chrome". I've just heard of this, didn't see what the commands would be. Any idea if this would work with lastpass too? Or maybe you can consider it for the future. 

    Unfortunately (as I don't believe there is any way to integrate with the binaries within the browser) I don't think that would be achievable. However, I am going to work on a feature request discussed recently that will open the URL of the item in your default browser then copy the password to the clipboard :)

    Cheers,
    Stuart
  9. Hey,

     

    When I'm trying to login I get an error login illegal option in terminal. Any idea what the problem could be?

    I've attached a screenshot.

    https://www.dropbox.com/s/lhfnmbm350w5lij/Screenshot%202015-08-26%2013.51.12.png?dl=0

     

    Set email worked fine, when I tried to login I got this problem.

    Hmm it seems as though it could not find the lpass binary. Have you installed lastpass-cli?

     

    Also what happens when you run in terminal:

    which lpass

     

    Cheers,
    Stuart
  10. No, since then it is working perfectly. Only the first time did not work correctly.

     

    I think I had about 15 opened tabs at the time. 

     

    I tried just now to open tons of them and the problem also did not reappear.

    Awesome good to know, I will keep an eye on it, may have just been a glitch in the matrix but if I get another report I will take a closer squiz.

    Cheers,
    Stuart
  11. Hello!

     very nice script!

     

    I had a small issue though, this is the timeline of the events:

     

    - iterm 2.1.1 is running (with my usual tons of tabs)

    - upgraded Alfred to the new version

    - configured Alfred to use your custom script

    > at this point whenever I type a command (e.g: ls), iTerm opens a new tab but nothing is actually executed

     

    Stopping iTerm and launching it again made everything work again.

    OOOH that is a conundrum. Has it all been working OK since then (or you need to manually open iTerm each time for it to work properly?)

     

    Also when you say tons of tabs, may I ask how many on average (as I did not test the script with more than about five so might need to test more).

     

    After I have the extra info I will have a deeper squiz for you (and thank you for reporting the issue).

    Cheers,
    Stuart
  12. Howdy everyone,

    I can happily say today I release v1.2 of the workflow. This should be significantly more stable and resolve some login issues people have been having. Please let me know if you have any issues in case there are still some slightly different configurations out there the workflow is not yet dealing with.

    Cheers,
    Stuart

     

    Changes in this release:

    1. Bug - Removed deprecated framework code
    2. Bug - Merged pull request #4 from jsquyres "we-love-macports-too" to support macports installs of the lastpass-CLI
    3. Bug - Further improved on jsquyres code to support some additional install locations.
    4. Bug - Fixed bash script reliability, after two login attempts the script was often failing.
    5. Improvement - Improved sync behaviour to better support extremely large vaults.
    6. Improvement - Added new 'lpsync' command to force a sync on demand.
    7. Improvement - Changed behaviour to store login email in your Apple Keychain (set with 'lpsetemail yourname@example.com').
    8. Improvement - Added the ability to set the logout timeout and store in the keychain (set with 'lpsettimeout NUMSEC' where NUMSEC is an integer such as 28800, if you use 0 that will keep you logged in until your computer restarts).
    9. Improvement - Added hotkeys to the main functions.
  13. Howdy all :)

    In case you don't follow the Alfred blog (which if you don't you are missing out  :D ), the AlfredApp team have today announced that:

    "With the upcoming release of Alfred 2.7.2, the default iTerm integration has been replaced by the "Custom" scripts option. This allows for a more up-to-date and more flexible way to handle the iTerm integration, using scripts created by one of our fantastic users, Stuart Ryan."

     

    So, I will be on hand to give as much support as I can during the transition, I am hoping there won't be too many issues as I know there are quite a few users out there already using the custom terminal scripts. You can switch over to the custom terminal scripts now and you will have a seamless transition when Alfred 2.7.2 comes out.

    If you have any questions about the scripts please do not hesitate to holler.

    Cheers,
    Stuart
  14. Hi Stuart, I've had the same issue as danjng -- were you guys able to figure out a fix by any chance?

    OK can't seem to get you via PM (says you can't use it).

     

    So instead -->

    Could you please try downloading this new beta of the workflow --> [updated link August 18, 2015] https://dl.dropboxusercontent.com/u/9093155/alfred-workflows/stuartcryan-lastpass-cli/LastPassCLI_1.2.1_beta.alfredworkflow 
     
    After you have installed the updated workflow you will need to run:
    lpsetemail yourname@example.com
     
    If you would like you can also use:
    lpsettimeout NUMSEC
     
    (where NUMSEC is either 0 - no timeout, or a number of seconds, otherwise a default of 28800 is used).
     
    Please let me know if you have any more success with that.
    Cheers,
    Stuart
  15. Custom Terminal AppleScripts to Integrate iTerm and Alfred

     

    iTerm version 3 beta:

    The iTerm 3 beta version is the same version we have had for quite some time, which is also known as 2.9. Therefore the v2.9 branch of the script will work just fine with the v3 (aka 2.9) beta and v3 when it is released (any major changes to iTerm's applescript not withstanding).

     

    In a blog post released recently (19th August 2015) Vero (Alfred's Mum ;)  ) has announced that as of the next version of Alfred, these custom terminal scripts will be the available mechanism for integrating Alfred and iTerm:

     

    "With the upcoming release of Alfred 2.7.2, the default iTerm integration has been replaced by the "Custom" scripts option. This allows for a more up-to-date and more flexible way to handle the iTerm integration, using scripts created by one of our fantastic users, Stuart Ryan."

     

    I would like to thank Vítor for helping to clean up the applescripts and submitting some great pull requests :).

     

    There are two versions of the script available:

    Each of these can be inserted into Alfred by following these steps:

    1. Load the Alfred control panel
    2. Click the Features Button/Tab
    3. Click on the "Terminal/Shell" menu on the left hand side
    4. Select "Custom" under application, and replace the text in the new box that appears with the code as per the version of iTerm you are running.

    Alternatively, check out the official YouTube video on how to set them up:

    integrate_iterm_alfredapp_custom_termina

     

    iTerm 2.1 Branch Custom Terminal Script Features:

    The 2.1 branch script is very basic and just corrects the opening of iTerm and creating a new session properly.

     

    Change Log:

    • V0.4 Release - Vítor's submitted pull request for simplifying the check for if iTerm is already running. - December 14, 2015 (apologies for the delay in merging)
    • V0.3 Release - Added version number and Vítor has done some great work standardising the scripts. No functionality changes in this release - August 14, 2015 
    • Remove Trailing Whitespace (Vítor Galvão) - August 10, 2015
    • Initial Release - July 31, 2015

     

     

    iTerm 2.9 Branch Custom Terminal Script Features:

     

    The 2.9 Branch goes a bit further to utilise some of the new features of iTerm 2.9 (which is in beta at the moment and can be downloaded if you are feeling adventurous from the iTerm download page). The script has been designed to achieve the following:

    • Open the correct iTerm binary under /Applications/iTerm.app regardless of if another iterm/iTerm binary exists on the system
    • Always create a new tab/session, unless iTerm is not running, in which case use the default session.
    • If the user has selected to not create a default session on iTerm startup, detect and create a default session.

    Change Log

    • V0.6 Release - Vítor's submitted pull request for simplifying the check for if iTerm is already running. - December 14, 2015 (apologies for the delay in merging)
    • V0.5 Release - Added version number and Vítor has done some great work standardising the scripts. No functionality changes in this release - August 14, 2015 
    • Removed bug introduced in last update (quotes around parameter) - August 12, 2015
    • Fix Whitespace (Vítor Galvão) + Fixed Search for iTerm/iTerm 2 Running (Stuart Ryan) - August 10, 2015
    • Updated to Fix Multiple iTerm Binaries - August 6, 2015
    • Initial Release - July 31, 2015

     

    Donations

    If you love the scripts, and get use out of them every day, if you would like to donate as a thank you to buy me more caffeine giving Diet Coke, some Cake, or to put towards a shiny new gadget you can donate to me via Paypal.

     

    donate.png

     

     

    Future Updates:

    As new versions come out of the 2.9 branch I will keep the scripts up to date, if anyone finds issues with the 2.1 branch please let me know and I will test things out. If there are any changes to the scripts, I will post an update in this thread to let everyone know.

     

    If you would like to look at/contribute to the official repository please check it out on Github --> https://github.com/stuartcryan/custom-iterm-applescripts-for-alfred.

     

    As always, I welcome ideas/thoughts/feedback etc.

    Cheers,
    Stuart
  16. I am happy to say I have pulled together a major update for everyone. I hope there are others out there getting use out of this, if not... I have done a lot of updates for my self :D *cackles*.

     

    Changes are as follows:

    • Feature: Support additional browsers - added Chromium, Canary and SeaMonkey
    • Feature: Only show installed browsers
    • Feature: Indicate which browser is the current default
    • Feature: Added hotkey assignments (to launch workflow, launch with "chrome", and launch with "safari")
    • Improvement: Renamed description in Alfred to simply "Default Browser"
    • Improvement: Improved failure feedback
    • Improvement: Major code refactor to remove duplication and speed up the workflow
    • Improvement: Added an icon to the workflow
    • Improvement: defaultbrowser binary has been updated to better support integrating. This code has been put into a pull request for the official publication of defaultbrowser.
×
×
  • Create New...