![]() ![]() I open Alfred ( control-space in my case) and type in dev, press return and my standard suite of development applications launches. The nice thing about the Alfred Powerpack (extra cost, not much but worth it!) is that it can launch a set of applications when a short string is typed in its search field. The dock only contains currently running applications (thanks Elaine and MacBites!). One more thing… I don’t use the dock to launch applications – I use Alfred instead. You can populate Dash with a whole slew of documentation, including PHP, Ruby, Python, and even man pages! And you don’t have to be tied in to Xcode – go on, be different and use BBEdit, TextWrangler, or TextMate!Īs for PopClip, it’s a pity that I can only have 22 PopClip extensions… Fortunately I don’t need that many! The best part is you’re not restricted to only the documentation which Apple provides. You could also select and copy portions of the text in Dash, if you so desire. Switching back to Xcode via command-tab, I do a paste and voilà, I have the method declaration in place. The usefulness of Dash comes from clicking on the method declaration (it has a grey background) which copies the entire method text. I find Dash a whole lot more useful, easier to navigate, and quicker compared to Xcode’s Organiser. Selecting that Dash icon switches over to Dash and looks up the selected text. When I select text in Xcode, the familiar PopClip menu comes up and includes the “cat” icon for Dash. I always have PopClip running in the background, with the Dash Extension installed. On my iMac, I additionally launch Kaleidoscope for file comparisons. My standard development application launch comprises: Here’s why I love the combination of PopClip with its myriad extensions and Dash while using Xcode. The full details about making extensions are in the technical documentation.I’ve written about PopClip and the Dash documentation browser, in particular how I found an issue using the PopClip Dash extension and provided a fix. PopClip will pause for 1/10th of a second after pressing each key combo. Example: #popclip snippet to press ⌘C twice This is done by specifying an array of key combos in key combos (with an ‘s’) field. New in PopClip 2022.5, you can press a sequence of keys. Other more ‘esoteric’ keys can also be specified as a virtual key code in hexadecimal format. PopClip recognises the following named keys: return, space, delete, escape, left, right, down, up, and the F keys: f1 to f19. halloleo May 18, 2023, 6:52am 1 Hey Popclippers I like this installing of extensions via a text with popclip as the first line. To specify more than one modifier, just list them separated with spaces, with the key to press at the end. The key combo is simply a sequence of words from command (⌘), option (⌥), shift (⇧) and control (⌃), followed by the character, name or key code of the key to press. The key combo is specified as command E - see Specifying key combinations below. key combo - the main action, which is to press a key combination.Here I have put copy which makes PopClip copy the selection to the clipboard, where TextExpander will find it. If the target app's Paste command is available, this method places the given string on the pasteboard and then invokes the target app's Paste comand. The before field specifies an action PopClip should perform before the main action. Documentation for PopClip Extensions JavaScript Reference. before - this is important for the TextExpander extension.Here I have specified a filled circle with the letters te but you can change that (see here for info) icon - an icon for the extension’s action.Methods in the Action Methods category are only available in an action function. name - the name you give the extension. PopClip defines the methods and properties of the global popclip object.# popclip - this has to go at the top of every extension snippet so PopClip knows what it is.Let’s look at the lines of the extension snippet in detail: Feel free to ask for help in the thread down below, or share things you have made. Hopefully you now have an idea how to adapt this for other situations where you can accomplish a task using a keyboard shortcut. Now you have an extension that creates a new TextExpander snippet from the selection! Otherwise, after selecting the text block above with PopClip, you’ll see “Install Extension”. If you’ve chosen a different keyboard shortcut to ⌃E, you’ll need to type out the extension snippet yourself somewhere and alter it. Quite a few of my PopClip extensions provide alternate actions when triggered while holding down Control, Shift, Command, or Option. I’ve typed out an extension snippet as follows - all you need to do is go ahead and select it: # popclipīefore: copy # important line! see "the details" below PopClip extensions and modifier keys Tweet I mentioned in a recent post that I was getting unexpected behavior when using modifier keys with PopClip. Having done this, we can now make our PopClip extension. This can be any key combination of your choice, but here I’m using ⌃E (control and E). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |