Jump to content

raguay.customct

Member
  • Posts

    756
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by raguay.customct

  1. This workflow assumes that the kramdown ruby package is installed on the system already. To install, simply type in a command line: gem install kramdown Some system might require a sudo for this command. If you get an error message, try: sudo gem install kramdown This has a single file action that takes the given markdown file and converts it to a slide show in HTML and CSS. The command mds:theme is used to set the theme. It will let the user pick from a list of themes. The command mds:showtheme shows the user the currently set theme. This workflow is explained in detail in my tutorial: http://goo.gl/ENZGgV If you make a new theme, send it to me and I will include it. More coming soon... version: 1.0 Packal: http://www.packal.org/workflow/markdown-pressentation-workflow Github: https://github.com/raguay/MyAlfred My Web site: http://customct.com/alfred-2-workflows
  2. This is now the NW.js Toolkit in my GitHub. Latest version is up to date with Chrome finally.
  3. Just updated to work with NW.js instead of Node Webkit. Working on major upgrade to the Ace JavaScript library for the editor instead of CodeMirror. CodeMirror messes up all the time in scrolling. Not sure how Brackets work okay.
  4. I just added a command to the Alfred Browser workflow for opening the current Finder or Path Finder folder in Alfred Browser.
  5. Typing Finder in Alfred just launches Finder. Therefore, it brings every Finder window to the forefront. You would need to use a window manager like Hammerspoon to single out a single window and move it around. I wrote a workflow to use Hammerspoon, but it doens't do that either. But, that functionality could be added. You can get the workflow on Packal: http://www.packal.org/workflow/hammerspoon-workflow Conversations about it can be put in the Alfred Forums for it: http://www.alfredforum.com/topic/5334-hammerspoon-workflow/ Try it out and see what it does. Then let me know what you would like functionality wise and I will look into providing you a solution. You will need to get a PowerPack license to use it. If you do, add it to your profile so that it shows up here.
  6. Textwell Workflow This workflow is for working with the [Textwell](http://sociomedia.com/textwell/) program for the Mac. It currently give a command for opening it quickly, tw:front. It also has: tw:edit This copies the selected text and pastes it into TextWell. It also saves the name of the application that the text was copied from. tw:paste This copies what is in TextWell and pastes it back into the application that the text was copied from. There are hotkeys setup for the last two commands as well: tw:edit and tw:paste. You have to assign the hotkeys yourself. This gives similar feature as QuickCursor, though I have never used that application. I am exploring more ways to extend this workflow. Keep an eye on it! Version: 1.0 Packal: http://www.packal.org/workflow/textwell-workflow My Github: https://github.com/raguay/MyAlfred My Web site: http://customct.com
  7. Just uploaded a fix to the expose mode. It wasn't just bring a single window to the front. It now works.
  8. Okay, I found the bug in the copy/move for removing the directory from the list. The php strpos function did not do what I expected. I am now using strcmp and it seems to be working better. Not sure what your error message is coming from as that section of code doesn't use osascript. It is updated on Packal and my GitHub. Please redownload and give it a try.
  9. If you are having problems installing Mjolnir, try out Hammerspoon: https://github.com/Hammerspoon/hammerspoon/releases/latest It is Mjolnir with everything packed together in one place. No external modules and it only loads extensions as they are used. But, Hammerspoon has the window animations built in and can be slow, but Mjolnir doesn't. That is the largest differences. I will be maintaining both of these workflows. Any new feature of one will be added to the other. The other workflow is here: http://www.alfredforum.com/topic/5334-hammerspoon-workflow/
  10. This is a direct port of my Mjolnir Workflow. Installing Hammerspoon is much simpler without any external modules needing to be installed. Everything is internal. This workflow is for running scripts using Hammerspoon to control your windows. This is just a sample of the things that can be done. Follow this layout and you can do many neat things with Hammerspoon. First off, download Hammerspoon from http://www.hammerspoon.org/. Once installed, run the "hs:install" to set the configuration file this workflow expects and reload Hammerspoon. After that, everything should just work. hs:install Configure Hammerspoon with the configuration file that this workflow needs. The original is backed up into the users home directory as hs.orig. hs:upgrade This will upgrade the hammerspoon configuration file instead of writing the main config file. This will work for all versions newer than version 1.4. hs:reload This tells Hammerspoon to reload the configuration file. hs:open This opens the Hammerspoon console to the foreground. hs:nup This nudges the current window up. hs:ndown This nudges the current window down. hs:nleft This nudges the current window to the left. hs:nright This nudges the current window to the right. hs:tcaff This toggles system caffenate. If the AnyBar workflow and program are installed, then an indicator is shown. If caffenate is active, red "zzz" will be shown. Otherwise, grey "zzz" are shown. hs:leftthirds This moves the current window to the left 1/3 of the screen. hs:rightthirds This moves the current window to the right 2/3 of the screen. hs:lefthalf This moves the current window to the left half of the screen. hs:righthalf This moves the current window to the right half of the screen. hs:tophalf This moves the current window to the top half of the screen. hs:bottomhalf This moves the current window to the bottom half of the screen. hs:fullScreen This moves the window to the maximum size on the screen. hs:minimize This minimizes the current window. hs:tzoom This toggles the system fullscreen on and off for the current window. This moves the window to it's own space taking up the entire screen. hs:running This will list all the running apps. You can then just select one to bring it to the front, select with alt key to hide it, select with ctrl key to unhide it, and select with the fn key to close the application. hs:snap This snaps the current window to the closes grid box area. hs:setgrid This requires you to put the x, y for a starting position in a 3x3 matrix for the current window. Then you give the width and height. Therefore, to move the current window to the upper left most block in a 3x3 matric, you would do "hs:setgrid 0, 0, 1, 1". There is also a hotkey set to this value as an example. hs:command Type in a command string and it will be sent to Hammerspoon directly! There is also an external trigger HammerspoonCommand that will pass whatever is sent in the trigger to Hammerspoon using the command processor as in "hs:command". This gives other workflows or scripts the ability to interact with Hammerspoon through Alfred. hs:expose This will list all applications. When an application is selected, it will show all of it's windows in a matrix on the screen and ask the user for the coordinates of the one to show. It will then put all the windows back to their original position and bring the one selected to the foreground. If the application has only one window, it will simply bring it to the front. I also created a hotkey for doing Expose on FoldingText. The user can create more in the same manner. Just be careful to get the name of the application correct! hs:last This command undoes the very last window move. This assumes all window movements were done with Hammerspoon and this workflow functions. This workflow is also set up with a Remote page as well. Have fun controlling your windows from your iPad or iPhone. Version: 1.4 Packal: http://www.packal.org/workflow/hammerspoon-workflow GitHub: https://github.com/raguay/MyAlfred
  11. Just updated to new functionality that allows you to create a list of tag and then search for all files with those tags. It is assuming you have added the Alfred URI handler and installed the foldingtext node.js command globally: npm install foldingtext -g
  12. Just fixed another bug that stored files and not directories. I also added the ability to open a favorite directory in a terminal program. It uses the Alfred Terminal command that defaults to Terminal.app, but can be made to use iTerm in the Alfred configurations.
  13. Editor Features: - syntac highlighting for: HTML CSS Markdown FoldingText Markdown PHP go FoldingText SASS SCSS Scheme Python C, C++ PList XML Shell Lua SQL Haml Jade CoffeeScript Lisp Ruby Erlang Scala - Full Vim and Sublime keyboard support - Regular expression search/replace - Multiple cursors - code folding - Emmet expansions!!!! - Themes (currently just three - help me make more!) - more coming (ex: plugins, commands, external control, etc). There are still several bugs I am working on. But, I was wanting some user feedback and help making themes.
  14. Hi, just updated it again. I had a misspelling on the ae:windowlist command. It should now work if you have Mjolnir Workflow installed as well.
  15. Okay, I just pushed a new update: version 1.9. Two more modules were depressiated, so I removed them. I also added a command to update the init.lua file without trying to re-install the modules. Let me know if you have any issues.
  16. Alfred Editor This is a simple editor that makes use of NW.js Toolbox to run. Therefore, you need to install that workflow first. It can be found on my GitHub account below since it is too large for Packal. After installing this workflow, you need to execute ae:install to install the data files and the help files into their proper location. You will have a command line program called ae you can use to open files from the command line. The following commands are then useable: ae:openeditor This simply opens Alfred Editor without a file. ae:edit The currently selected file in Path Finder or Finder is opened in Alfred Editor. You also have an Alfred Browser command for opening files as well. An external command for opening files is available as well. ae:open This script filter gives several important directory locations that can be opened in the Alfred browser or Finder. ae:theme This script filter lists all the available themes. If you select one, that will be the new theme for windows opened in Alfred Editor. If you hold the **command key** while selecting, that theme will be opened in Alfred Editor to edit. ae:createtheme This allows you to create a new theme to use in Alfred Editor. It will request a new name, create the new theme from lesser-dark them, and open in Alfred Editor to edit. You will still have to select the theme for it to be used. ae:windowlist This will list each available Alfred Editor window name. The one selected will be brought to the front using the Hammerspoon Workflow. The Hammerspoon workflow has to be installed for this command to work. ae:keyboard This command allows you to choose either the Sublime keyboard layout or the Vim keyboard layout to use in Alfred Editor. If the Sublime layout is chosen, then the status line will always show it to be in insert mode. This workflow is a work in progress. I am using it to teach myself how to use the Node Webkit program for developing desktop applications using web technologies. I am currently working on a command prompt similar to Sublime with expandability using plugins. I also currently have only three themes. If you want to help me create themes, just send me the json file for your theme and I will include it. License: MIT Version: 1.2 Packal: http://www.packal.org/workflow/alfred-editor GitHub: https://github.com/raguay/MyAlfred Custom Computer Tools: http://customct.com/alfred-2-workflows
  17. Hi, I just overhauled the expose code to give a list of every running application with one or more window. If an application that has only one open window is selected, then it simply brings it to the forefront. Otherwise, it will show all the windows for that application in a matrix and ask you for the column and row value (zero referenced). It will then put all the windows back to their original location and bring the one selected to the forefront. This requires a reinstall of the init.lua file. But, the original file will be copied to your home directory as init.org. If there is any problems or more functionality you would like to see, just let me know!
  18. I am glad it worked. Not sure why the auto script does not get them. Did you have to use sudo on the install? That would explain it.
  19. Hi, Stop and restart Mjolnir. Then, open the console for Mjolnir and see what it says. The install script copies your original init.lua to mjolnir.org in your home directory. Anything you want in it should be copied back into the init.lua file. The console is opened by the dropdown menu from the menubar icon. If you manually installed each of the modules, then the cli module should be built. To run the "mj:find" command, you have to start typing the name of the cli program. Therefore, typing "mj:find mj" should have the cli program show up. You can look in a terminal to see if it is loaded with "which mjolnir". If that does not show the cli program, then it did not get installed. These two modules make up the cli program: luarocks install --server=http://rocks.moonscript.org mjolnir._asm.ipc luarocks install --server=http://rocks.moonscript.org mjolnir._asm.ipc.cli Make sure these are installed without warnings and it should be okay. Also, check to make sure your version of Lua is 5.2. Earlier versions do not work and 5.3 has not been tested with it.
  20. Just uploaded an update that gives a new command "cm:reset" that will reset all data files to base condition (empty).
  21. I assume your error was with copying. The mv command is already recursive and should work with files that are really folders. Now, both are recursive and can be used on folders. Just uploaded update.
  22. Hi, I can not reproduce your error. Is it the copy or move function? Is it the source or destination? All of my destinations have spaces and parenthesis and true files should not make a difference. But, files that are really directories will not work since I am just using the standard unix cp command. I will experiment with making the cp function recursive and see if that helps. Update soon...
  23. Hi, Since Node Webkit doesn't do much by itself, I created a workflow to make it easier to use it. This workflow is large because it has the full Node Webkit contained inside. What this allows is to create full desktop applications using simply HTML, CSS, and JavaScript of the Node flavor. Any Node library can be used with the application. Once you have your application developed, you can zip it up with a config.json file. This workflow provides the following: nw:website This opens the Node Webkit website on GitHub. nw:open When the user starts typing, a file ending in the ".nw" extension is looked for according to the work typed. Therefore, if there is a file called "new.nw", as soon as "n" is typed , that file will be displayed. nw:opendir Opens the current directory in Finder or Path Finder using Node Webkit. The config.json file should be in that directory. nw:help Opens this help program. This is an example of the minimum needed for a Node Webkit application. There are also two File Actions defined: Open Directory that is available on directories, and Open Package that is available on Node Webkit packages. There are also two External Triggers: RunNodeWKDirectory and RunNodeWKPackage which work the same as the file actions. These allow external programs or other Alfred workflows to call a Node Webkit application by passing the full path of the application bundle or directory. The help option for this workflow shows an example of using these External Triggers. The following code will open the help application that is located in the same directory as the code: thisDir=`pwd`; /usr/bin/osascript -e "tell application \"Alfred 2\" to run trigger \"RunNodeWKDirectory\" in workflow \"com.customct.NodeWebkit\" with argument \"$thisDir/help\"" The directory path given in the argument tells Node Webkit where to load the program from. It is set with the pwd command. There will be more tutorials and hacks using this workflow on my website Custom Computer Tools. Version: 1.0 GitHub: https://github.com/raguay/MyAlfred/blob/master/NodeWebkitToolbox.alfredworkflow This workflow is too big for http://www.packal.org/. Therefore, you can only download it from my GitHub account.
  24. Hi, That would depend on the application. If the application has a way for external programs to access it's information (AppleScript library or URI lookup hooks), then it would be easy to integrate it with Alfred. Otherwise, it is nearly impossible since copy righted texts are usually encrypted to prevent this.
×
×
  • Create New...