robert_muench Posted January 5, 2017 Share Posted January 5, 2017 I would like to use the snippet feature in MacVim as well but it doesn't work. I think this is due to MavVim not using a plain stock cocoa edit widget but something else. Is there anything how I could get it to work? Are there are any workflows, or simple way to make Snippets & MacVim work together? Link to comment
Andrew Posted January 5, 2017 Share Posted January 5, 2017 @robert_muench as long as you are in insert mode, and cmd+v works, then it should work ok... I use vim in terminal with Alfred's snippets all the time. Cheers, Andrew Link to comment
robert_muench Posted January 5, 2017 Author Share Posted January 5, 2017 Doesn't work for me in terminal as well... I'm using the VimBox configuration which uses a couple of plug-ins like autocomplete etc. Not sure if this could make any problems? But automatic text expansion (meaning I type !abc and it gets replaced) even doesn't work in this input field here. Maybe I try to use this feature in a wrong way? Link to comment
Vero Posted January 5, 2017 Share Posted January 5, 2017 @robert_muench It's possible that plugins are interfering, but the first two things to check: Did you remap cmd or ctrl, or make changes that could cause cmd + v not to work as expected? Did you set Terminal to secure input? If so, Alfred would be unable to see the snippet keyword when typed so won't expand. Let me know how you get on Cheers, Vero Link to comment
robert_muench Posted January 5, 2017 Author Share Posted January 5, 2017 cmd+v works, but I think I want to use the feature different and chose a bad title. I want the snippets to autoexpand while I type. Which isn't the case. Opening Alfred, getting to the snippet and pasting will definitely work, but that's not a fast workflow. Link to comment
Vero Posted January 5, 2017 Share Posted January 5, 2017 @robert_muench I understand what you're trying to do. The reason I'm asking about cmd + v is that Alfred relies on the pasting function for snippets, so if default keys have been remapped, pasting may not be happening as expected. Is snippet auto-expansion working in other apps, e.g. in a Text Edit file, on your Mac? And when you try to auto-expand a snippet, what behaviour do you see? Do the characters from the snippet keyword disappear but the snippet content doesn't appear? Cheers, Vero Link to comment
vitor Posted January 5, 2017 Share Posted January 5, 2017 @robert_muench If you think it helps to show the behaviour, you can easily record your screen with QuickTime Player. Link to comment
robert_muench Posted January 5, 2017 Author Share Posted January 5, 2017 Well there is not a lot to see as just nothing is happening. CMD+V is working. So, this is my configuration and how the text is shown (unexpanded). And a screenshot of the settings that Alfred can control my system. Link to comment
Vero Posted January 5, 2017 Share Posted January 5, 2017 @robert_muench Is text expansion working as expected in other applications? The second screenshot looks like a text file, so it'd be helpful to understand whether your issue is global or specific to Terminal, as per my earlier post. Also, could you please confirm that you're using Alfred 3.2.1? Cheers, Vero Link to comment
robert_muench Posted January 5, 2017 Author Share Posted January 5, 2017 Alfred text expansion is not working at all. The OSX text expansion is working (but not in MacVim and of course not in Termin as this isn't supported). Yes, 3.2.1 [768] BTW: Thanks for all the engagement so far :-) Link to comment
Vero Posted January 5, 2017 Share Posted January 5, 2017 @robert_muench Ah, so we can take the focus away from any Terminal-related issues, as it's a broader issue of getting Alfred text expansion working on your Mac! Please take a look at the troubleshooting steps here, which cover most aspects to look at to get text expansion up and running: https://www.alfredapp.com/help/troubleshooting/snippets/ Cheers, Vero Link to comment
robert_muench Posted January 6, 2017 Author Share Posted January 6, 2017 Ok, so some more information: 1. When starting Alfred a pop-up states "Let's get started" and I see an "Alfred Text Service" icon in my Dock. 2. I don't see the "Alfred Text Service" in Mac's Security & Privacy preferences. 3. When enabling autoexpansion in Alfred, the icon disappears and nothing happens / works. So, where is this service stuff? Is it an app, where can I manually choose it? Link to comment
Vero Posted January 6, 2017 Share Posted January 6, 2017 @robert_muench Which version of OS X/macOS are you using? You should see the second Alfred Text Service pop-up after the "Let's get started" one. Does this not appear for you once you click "Let's get started"? https://www.alfredapp.com/help/features/snippets/#expansion Open your Applications folder, right-click on Alfred 3 > Show Package Contents > in the Services folder, you'll find Alfred Text Service. You can drag this manually to the System Preferences > Security & Privacy > Privacy > Accessibility section and ensure the box is checked. You should then be able to check the box in Alfred's Features > Snippets to start expanding your snippets. Cheers, Vero Link to comment
robert_muench Posted January 6, 2017 Author Share Posted January 6, 2017 I use: 10.11.6 (15G1212) Correct, the 2nd "Alfred Text Service" pop-up is not showing, while an icon is shwon in the Dock. I made a screenrecording: https://db.tt/PwHAG62uGb The manual work around worked !! :-D Very good! Didn't know about this possibility. So, problem solved. No clue why the standard procedure doesn't work. Link to comment
Vero Posted January 7, 2017 Share Posted January 7, 2017 @robert_muench Glad it's resolved! In the future, I would suggest trying to look at an issue more holistically when reporting an issue you're experiencing (e.g. snippets weren't working anywhere on your Mac, nothing to do with MacVim/Terminal) as this could have been resolved in a single reply. Cheers, Vero Link to comment
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