Jump to content

windowmanager, ssh server list, toggle Alfred :ignore, SASS watch files, search by file kind


Recommended Posts

Hi all

 

Here's a selection of workflows that perhaps people will find useful. For the script filter workflows I've used David Ferguson's extention_utils.php

 

 

windowMmanager : position windows in screen halves, corners and stack them into columns
alfredIgnore : hide files and folders from Alfred's results
sshList : add/remove and easily connect to ssh servers
SASS : watch .scss files and kill all SASS processes
fileType search : search by a filetype and search term. Useful if you have a project consisting of different filetypes but similar names.
 
Link to comment

The ssh workflow is great!  Thanks.

 

I use a different terminal theme for each of the hosts that I typically log in to.  I've hacked the applescript, to use a theme based on q, but I wonder if that could be added to the serverList.txt file.  Also I wonder if there is a way to determine if there is already a window open for a particular host, so as not to create duplicate windows...  Maybe not desirable in all cases though.

 

 

Brad

Link to comment

Glad you like it Brad.

 

I've updated the script to check whether a particular ssh connection is already open and to not create a new one if so. You can old down alt to force the creation of a new connection if required though. 

 

Currently the code to focus the window of the already active session relies on the title of the Terminal window. Depending on your sshd setup the title may not fit the required format. Have a look at:

 

http://tldp.org/HOWTO/Xterm-Title-4.html

 

for more info. When Andrew gets applescript nodes running in osascript I plan to store the window id in a text file which will get round this problem.

 

 

Also...

 

I realised the windowManager extension requires a small program written by Eric Nitardy called fb-rotate to get the screen size. Again when the osascript fix is done this can be included as part of the extension under the GPL licence. More info can be found here:

 

https://github.com/CdLbB/fb-rotate

 

Tom

Link to comment

Hi Tom,

 

the ssh worklflow is already quite handy but it would be much better if it reads the file "~/.ssh/config" where you can define shortcuts and preferences for servers. I think it makes no sense to maintain two server lists. What do you think?

 

Bye

Sebastian

Link to comment

Good idea Sebastian.

 

I had never really looked into .ssh/config before as I only use ssh to manager my own server. For my needs the current workflow is fine. However if you have your .ssh/config file set up properly it would seem you can ssh merely by typing

 

 

ssh [hostname]

 

The speed of this comparable anyway to using Alfred I would say. What's more, I'm not sure how many people would like an Alfred workflow mucking around with their configs so the add/remove capabilities of this workflow may not be needed.

 

I am not a server admin so I've quite likely missed something - if I have please let me know and I'll add in the functionality you've requested.

 

Ta 

Link to comment
  • 2 months later...

...

 

windowMmanager : position windows in screen halves, corners and stack them into columns
alfredIgnore : hide files and folders from Alfred's results
sshList : add/remove and easily connect to ssh servers
SASS : watch .scss files and kill all SASS processes
fileType search : search by a filetype and search term. Useful if you have a project consisting of different filetypes but similar names.

 

Hi Tom Hunt,

 

tried to download the windowmanager from tom-hunt.co.uk/ftpguest/alfred/WindowManager.alfredworkflow

Got a URL not found error.  :(

 

Could anybody provide that WindowManager Workflow? 

 

Thanks

Edited by StDt
Link to comment

I am not sure what is best. I personally prefer to use the .ssh/config. Hence I wrote my own small workflow :)

 

SSH_Quick_Connect.alfredworkflow

 

You've probably seen it already, but you might find my SSH workflow more powerful. It supports username override and smart-completes hostnames based on the contents of ~/.ssh/config, ~/.ssh/known_hosts, /etc/hosts and (optionally) Bonjour:

 

Thread and direct download

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...