Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add a source to provide complete candicates #250

Open
UncleBill opened this issue Aug 21, 2014 · 9 comments
Open

Feature request: Add a source to provide complete candicates #250

UncleBill opened this issue Aug 21, 2014 · 9 comments

Comments

@UncleBill
Copy link
Contributor

Hi @Shougo
It will be nice if neosnippet could parse provide some candidates for neocomplete:
I have a css snippet:

snippet fs
    font-style:${1:normal|italic|oblique}

I hope neosnippet could parse ${1:normal|italic|oblique} and give me a complete list contains "normal","italic" and "oblique"

@ujihisa
Copy link
Collaborator

ujihisa commented Aug 21, 2014

  • 👍 The feature sounds very practical
  • The notation needs to get changed, because it prohibits you to use | in default text

@UncleBill
Copy link
Contributor Author

@ujihisa Thanks.

The notation needs to get changed, because it prohibits you to use | in default text

Agree!

@Shougo
Copy link
Owner

Shougo commented Aug 21, 2014

@UncleBill This selection is occurred when snippet is expanded?

@UncleBill
Copy link
Contributor Author

@UncleBill This selection is occurred when snippet is expanded?

I don't get it, my English is not good enough.
My idea is writing a neocomplete source in neosnippet which collects the candidates from the sippet.

Like this:
I type fst<tab>, and I get
screenshot

@UncleBill
Copy link
Contributor Author

I try to change the snippet by calling ominfunc:

snippet fs
    font-style:`"\<c-x>\<c-o>"`;

But I just get:

    border-style: ��^X^O;

@Shougo
Copy link
Owner

Shougo commented Aug 24, 2014

I get it. I think complete() is better than omnifunc.

@wsdjeg
Copy link
Contributor

wsdjeg commented Jan 23, 2016

@Shougo is it will be easy to be implemented by remote plugin?

@Shougo
Copy link
Owner

Shougo commented Jan 24, 2016

No.

@roachsinai
Copy link

Found vscode support it, and support this feature will be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants