Comments (5)
This proposed change also requires a ), :, or ; character between one string of word characters and the next before trying Omni complete on the second string (but does not require a whitespace after those characters).
Please describe the change. Why it is needed?
I don't understand it.
from neocomplete.vim.
I guess I don't get what that second string is meant to do. This regex string:
\w\+[):;]\?\s\+\w*
Is (a) at least one word character, followed by (b) one or none of the )
, :
, or ;
characters, followed by (c) at least one character of whitespace, followed by (d) at least 0 word characters.
It looks like this is supposed to be for when you have something like background: n
, there is supposed to be Omni completion for that n
; but because the [):;]
is optional, it's activated for the first letter of any word that has another word before it. So it will activate for all the following strings:
div a
background: n
border: 1
/* Lorem i
color: red; b
What's odd, though, is that the space following [):;]
is not optional, so Omni would not trigger on something like this:
color:r
I think I just don't get what this second string is meant to target that the first string isn't already targeting. Looking more closely at it, it seems like you could almost get rid of it, except maybe after a :
character so that property values pop up earlier.
from neocomplete.vim.
Well, I get it.
But it is not too agressive?
Omni completion starts in CSS and SCSS files when a single character is typed, which is too aggressive in my opinion. Ideally, I think this should obey the g:neocomplete#min_keyword_length setting.
Please describe why \w\+
is too agressive, but \w\+[):;]\s*\w*
is not.
from neocomplete.vim.
Please describe why
\w\+
is too agressive, but\w\+[):;]\s*\w*
is not.
I think because, at least with :
, you know the user is starting a property value, of which there are limited options. But maybe it should be tied to g:neocomplete#min_keyword_length
, too. Why even have that second string (\w\+[):;]\s*\w*
)? What are some example use cases for it?
from neocomplete.vim.
I don't write CSS.
The pattern was added long ago by other people.
So I need CSS writer's demand.
from neocomplete.vim.
Related Issues (20)
- Vim freezes if the completion candidates are very long HOT 5
- Third party libraries; HOT 3
- Python completion - Feature request HOT 4
- neocomplete.vim with problem of 100% cpu usage HOT 2
- neocomplete development is over HOT 3
- problem when editing tex file HOT 3
- "vim" is not found HOT 1
- Onmi Window Doesn't Appear for PHP While Typing HOT 2
- SCSS keyword patterns include final colon in strings
- Sass variable ctags that begin with dollar signs aren't included in completion popups HOT 5
- New feature request HOT 1
- brew install vim --with-luajit cant work HOT 1
- jedi-vim omni completions not working sometimes HOT 1
- when I press esc Press ENTER or type command to continue HOT 1
- "Extract the files and put them in your Vim directory" which files? HOT 1
- E: Package 'vim-gnome' has no installation candidate HOT 1
- lua array index in vim now starts with 1 starting with patch-8.2.1066 HOT 1
- Asking for username and password HOT 3
- Use register other than the unnamed one HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neocomplete.vim.