Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUltiSnips should pass through any mapping that it currently can't execute as the trigger key #1184
Comments
|
Seems to me that the linked solution is perfectly viable. It is unfeasible for UltiSnips to play around any potential combination of behaviors people want to overload. Coding your own binding seems the correct approach. Do you disagree? |
|
True but it is the default behavior of |
|
So to understand correctly, the suggested feature request here is that UltiSnips passes through whatever mapping it has if it cannot fullfill an action. In this case, if it cannot expand at the current position, it should actually insert a literal |
|
Yes, absolutely.
Sent from ProtonMail mobile
…-------- Original Message --------
On 3 Mar 2020, 2:05 PM, Holger Rapp wrote:
So to understand correctly, the suggested feature request here is that UltiSnips passes through whatever mapping it has if it cannot fullfill an action. In this case, if it cannot expand at the current position, it should actually insert a literal <cr>, right?
—
You are receiving this because you authored the thread.
Reply to this email directly, [view it on GitHub](#1184?email_source=notifications&email_token=ABY4SKKSDUJNPJVYFCQ2YMDRFS6ODA5CNFSM4K6WAEZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENSSFYA#issuecomment-593830624), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ABY4SKMVGMX475C7GACWN2LRFS6ODANCNFSM4K6WAEZA).
|
|
That sounds reasonable. No idea how hard that is to implement though. Patch is always welcome! |
Ultisnips plays very good with for selection but when I map for selection, no longer triggers newline in insert mode. It would be nice to have do both as does because it feels natural to step through the completion suggestions (YCM here) using and ultisnips stops at the first snip suggestion and starts the snip while using
let g:UltiSnipsExpandTrigger = "<CR>"<CR>PS: There seems to be one possible solution on stackoverflow: https://vi.stackexchange.com/questions/2757/triggering-ultisnips-with-enter but it would be nice to have that in-built.
Included patches: 1-148