stuartcryan
-
Posts
131 -
Joined
-
Last visited
-
Days Won
9
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by stuartcryan
-
-
Yes, working really smooth, love it! Great job!
No worries at all and I will have a look at fixing that as it *should* be telling you that the binary is not installed. Will get a fix in for that for the next version.
Cheers,Stuart -
That's exactly what I forgot to type.
Thanks for the fast response!
No worries so you are all up and running now?
Cheers,Stuart -
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 -
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 -
Dude that is AWESOME *high fives* LOVE your work
-
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 -
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,StuartChanges in this release:
- Bug - Removed deprecated framework code
- Bug - Merged pull request #4 from jsquyres "we-love-macports-too" to support macports installs of the lastpass-CLI
- Bug - Further improved on jsquyres code to support some additional install locations.
- Bug - Fixed bash script reliability, after two login attempts the script was often failing.
- Improvement - Improved sync behaviour to better support extremely large vaults.
- Improvement - Added new 'lpsync' command to force a sync on demand.
- Improvement - Changed behaviour to store login email in your Apple Keychain (set with 'lpsetemail yourname@example.com').
- 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).
- Improvement - Added hotkeys to the main functions.
-
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 -
Hi Sean,
Thanks so much for your donation and glad the workflow is helping you out.
If you have any ideas, feedback or suggestions please do not hesitate to let me know.
Cheers,Stuart -
Howdy all
In case you don't follow the Alfred blog (which if you don't you are missing out ), 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 -
Top work, Stuart. I only came here looking for a way to change the default location for maps search, and this fixes that as well as doing so much more :-)
No worries at all if you have any suggestions on additional features you might like to see please do not hesitate to let me know
-
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.alfredworkflowAfter you have installed the updated workflow you will need to run:lpsetemail yourname@example.comIf 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 -
Hi Stuart, I've had the same issue as danjng -- were you guys able to figure out a fix by any chance?
Hi Klau,
I haven't had contact, the other person that had this issue it magically cleared up (I hate it when that happens).
I will PM you as I have a beta version of the workflow that may fix the issue for you.
Cheers,
Stuart -
Hi All,
Some minor modifications to the scripts, Vítor has done some great work standardising the scripts and a version number has now been added for ease of future tracking.
There are no functionality changes in this release, only code cleanup and some additional comments.
Cheers,Stuart -
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 -
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 -
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:
- iTerm 2 Branch (tested up to 2.1.1) - view the v2.1 script on Github - updated December 14, 2015
- iTerm 2.9 Branch (tested up to 2.9.20150626) - view the v2.9 script on Github - Updated December 14, 2015
Each of these can be inserted into Alfred by following these steps:
- Load the Alfred control panel
- Click the Features Button/Tab
- Click on the "Terminal/Shell" menu on the left hand side
- 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:
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.
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 -
So far I haven't found any issues other than those initial hiccups. Seems to be working well and as expected for me
-
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 -
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 *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.
-
Today I happily release v1.1 of Rapid Browser Tabs which has the following changes:
- Fix - Tab icon for Safari did not display
- Feature - Add "ctrl" key modified to force reload tab on opening
- Feature - Provide feedback on settings initialisation and sync
- Feature - Enable favourite searching by URL
-
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.
-
No worries at all Bill, and don't worry haha I had done the same, not sure why I hadn't seen it earlier.
And yea, haven't seen anything for Key Caps as of yet.
Cheers,Stuart -
- Movie and TV Show Search, by tone. Does exactly what it says on the tin. Wicked fast to get info, with ratings from many websites. It even made me deprecate one of my own workflows.
That is AWESOME I have been hunting for something similar for ages. #dances Muchos Gracias
LastPass Workflow for Alfred - update v1.4.7 August 19, 2016
in Share your Workflows
Posted
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