Jump to content

stuartcryan

Member
  • Posts

    131
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by stuartcryan

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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.
  6.  

    One thing I've done is change the keyword from "rbt" to just "t" as it's very frequent use for me; is there any reason to steer clear of single char keywords that I haven't come across?

     

    You know that is really interesting I actually had 'w' just for websites, but I thought the majority of the community might frown on a single letter (tho I never found issue with it at all).

     

    If everyone is happy for a single letter I would be more than happy to make that the default?

     

    (perhaps 't' would be best)?

     

    And no worries at all, there is much learning using Alfred, I suggest you start small, get used to a few functions then add a few more, that is the best way (rather than loading up all the workflows and forgetting what you have and how to use it quickly).

    Cheers,
    Stuart
  7. 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
  8. 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
  9. Hi All,

    Minor update to the 2.9 branch to remove a bug introduced in the last update (my bad), I forgot to remove quotes around one of the parameters.

     

    This had the effect that when iTerm was already running, you would get a 'q' rather than the command you opted to run.

    Cheers,
    Stuart
  10. No worries at all :) seeing as this has proven useful for a couple of people, I have decided to formally publish the scripts in a better location at http://www.alfredforum.com/topic/7138-custom-terminal-script-correct-iterm-behaviour-for-alfred/.

     

    I will keep that thread up to date with any changes to the scripts etc (to act as sort of a notification for the community, almost treating it like a workflow).

     

    Glad I have been able to help you out and thanks go out to Andrew for pointing me in the right direction.

    Cheers,
    Stuart
  11. 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
  12. Might I suggest adding a paragraph at the beginning of the description that summarises exactly what the workflow does.

     

    I've read the description through twice, and I still don't really understand what this workflow does. Many people won't bother reading beyond the first paragraph if something doesn't grab their attention.

     

    Apparently, it allows me to set some favourites. It does something with tabs. Open them? Close them? Search them?

     

    If I turn on sync, what does it sync? Open tabs? The favourites I set? Both?

     

    Hi Deanishe,

    Thanks so much for the feedback you raise a REALLY valid point (epic fail on my part).

     

    I have now added a section describing exactly what the workflow does and what it can be used for (and how it can save you time).

     

    Please let me know if that makes a little more sense. More than happy to revise it again if you (or any others) have any questions.

    Cheers,
    Stuart
  13. 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.
  14. I also wrote a JIRA workflow that I haven't released yet that allows searching issues, setting a favorite filter, returning results based on the set filter, and assigning issues, that I use all the time. I am not sure if a lot of people use JIRA, so I have been hesitant to release it, but if there is interest I will expedite.

    OOOh I would be very interested in chatting with you about that as I had been looking at writing something similar (and have already written something for Confluence but unreleased).

     

    Will message you directly.

×
×
  • Create New...