strajk Posted June 9, 2016 Share Posted June 9, 2016 Adding multiple snippets can get really tedious, would be awesome if I can prepare them in some text editor and that just import them... Is there any way to do this? name, keyword, content "any" ,"Pan", "PropTypes.any" "array" ,"Parr", "PropTypes.array" "arrayOf" ,"Paro", "PropTypes.arrayOf()" "bool" ,"Pbo", "PropTypes.bool" "element" ,"Pel", "PropTypes.element" "func" ,"Pfn", "PropTypes.func" "instanceOf" ,"Pio", "PropTypes.instanceOf()" "node" ,"Pno", "PropTypes.node" "number" ,"Pnu", "PropTypes.number" "object" ,"Pobj", "PropTypes.object" "objectOf" ,"Pobo", "PropTypes.objectOf()" "oneOf" ,"Poo", "PropTypes.oneOf([])" "oneOfType" ,"Pot", "PropTypes.oneOfType" "shape" ,"Psh", "PropTypes.shape({})" "string" ,"Pst", "PropTypes.string" Link to comment Share on other sites More sharing options...
Vero Posted June 9, 2016 Share Posted June 9, 2016 Adding multiple snippets can get really tedious, would be awesome if I can prepare them in some text editor and that just import them... Hi there, Could you please fill in your Powerpack email address in your forum profile to allow us to confirm your Powerpack user status first? Thanks Vero Link to comment Share on other sites More sharing options...
dfay Posted June 9, 2016 Share Posted June 9, 2016 Hi strajk This should do what you want: https://github.com/derickfay/import-alfred-snippets I've only tested it with the sample text you provided above (with the spaces outside the quotes removed) and it worked fine. Link to comment Share on other sites More sharing options...
kevinSuttle Posted June 10, 2016 Share Posted June 10, 2016 Even better would be to import/convert the ones I already have in OSX/iOS. Link to comment Share on other sites More sharing options...
dfay Posted June 10, 2016 Share Posted June 10, 2016 That should be really easy. Follow the directions here to get the OS X .plist with the substitutions https://support.apple.com/en-us/HT204006, then convert the .plist from XML to Alfred JSON format. Link to comment Share on other sites More sharing options...
Khaine Posted June 15, 2016 Share Posted June 15, 2016 It would be awesome if we could import from text expander Link to comment Share on other sites More sharing options...
dfay Posted June 15, 2016 Share Posted June 15, 2016 (edited) TE import is discussed here: http://www.alfredforum.com/topic/8883-import-textexpander-snippets-into-alfred-v3/ and available as a web app here: http://alfred.danieldiekmeier.de Edited June 15, 2016 by dfay Link to comment Share on other sites More sharing options...
Khaine Posted June 16, 2016 Share Posted June 16, 2016 TE import is discussed here: http://www.alfredforum.com/topic/8883-import-textexpander-snippets-into-alfred-v3/ and available as a web app here: http://alfred.danieldiekmeier.de Awesome, thanks I quickly searched and couldn't find anything. Now I don't need text expander. Alfred keeps getting better and better Link to comment Share on other sites More sharing options...
strajk Posted June 17, 2016 Author Share Posted June 17, 2016 Hi strajk This should do what you want: https://github.com/derickfay/import-alfred-snippets I've only tested it with the sample text you provided above (with the spaces outside the quotes removed) and it worked fine. Thanks!! Link to comment Share on other sites More sharing options...
Awfki Posted December 16, 2016 Share Posted December 16, 2016 On 6/9/2016 at 7:00 PM, dfay said: This should do what you want: https://github.com/derickfay/import-alfred-snippets Thank you! I was trying the same thing and finally Googled alfred json snippet and found this. Worked great. Python 2 for anyone else using it. dfay 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now