Giter VIP home page Giter VIP logo

autocomplete-css's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autocomplete-css's Issues

FR: Setting to disable automatic semi-colon insertion

I'm quite new to Atom, and one thing that's been bugging me for a while is the automatic addition of the trailing semi-colon when you've picked an autocomplete suggestion.

For instance list-style: -> auto-complete -> square puts the semi-colon at the end.

I've got 12 years' muscle memory of typing the semi-colon manually, so I'm frequently & accidentally now writing 2 in a row. It's also annoying because when there is no auto-complete suggestion, I have to manually type it anyway, so I'd much rather an all or nothing approach.

So, I'd love a setting to enable or disable this feature.

The code in question is:

text += ';' unless hasScope(scopes, 'source.sass')

Remove parenthesis from autocompletion of values

Currently, autocomplete includes parenthesis (and closing semicolons) to values that require parenthesis (e.g. – translate()). In theory this sounds nice, but in practice it just requires a user to move their cursor backwards into the parenthesis.

Autocompleting the "translate" value is an example:

.some-selector {
  transform: translate();[CURSOR]
}

Given that placing the cursor within the parenthesis is not within the scope of autocomplete and should be handled by a snippet, I propose it's better to not autocomplete values like this with parenthesis and semicolons.

.some-selector {
  transform: translate[CURSOR]
}

There are plenty of values that fall into this, translate is just one example.

The autocomplete plugins doesn't work

When I write css code inline, but the autocomplete-css does't work. It is not help me to complete the code.I think many people meet this question,

Best wishes!
Mascot

BUG: Broken after "split down"

The autocomplete stopped working after i split the view in 2 using the "split down" option, and then resized the lower window (the one with the css), (i made it smaller, about 20% of the screen height).
It still works in the ordinary window (the upper one), but it wont trigger at all (even with ctrl-space) in the lower window.

screenshot from 2016-08-28 13-36-31

NOTE:
I realize this might not be a bug since the autocomplete menu wouldn't relay fit in the small window. Although i would still like it to work, maybe just make the menu scale with the size of the window?

Another bug?
I just realized something, if i have the same css open in both windows, when i target the lower window and start typing, the menu shows up in the upper one.

How can I update values?

Hello, I am newbie in atom. I can't see properties for display like inline-block, block and so on. Like in your gif.

Maybe this can help:
You can update the prebuilt list of property names and values by running the update.coffee file at the root of the repository and then checking in the changed properties.json file.

But I can't understand how to do that. Can you help me?

Add option for whether a space is automatically inserted after the colon on property autocomplete

The default behavior after autocompleting a CSS property is to insert a colon and a space. I know that many people like to format their CSS that way, but since I don't have each property on its own line in the code, I rely on the space after the semicolon to show me where they begin and end, and having a space after the colon messes up my ability to visually scan the file for what I'm looking for. Please add an option for whether you want the space after the colon on autocomplete or not. Thanks.

Margin property expands to max-resolution

Not sure if this should be here or under the main plugin issue list.

But if I try to use TAB on margin it expands to max-resolution: res;

atom-autocomplete-css-margin

and this is my list of plugins installed

asteroids\
atom-handlebars\
autocomplete-css\
autocomplete-html\
autocomplete-plus\
autocomplete-snippets\
color-picker\
command-logger\
docblockr\
editor-stats\
editorconfig\
emmet\
file-icons\
fizzy\
graphite-ui\
highlight-selected\
ibm-dimensions-kit\
linter\
linter-bootlint\
linter-csslint\
linter-jscs\
linter-jshint\
linter-scss-lint\
merge-conflicts\
minimap\
minimap-color-highlight\
minimap-find-and-replace\
minimap-git-diff\
minimap-highlight-selected\
minimap-selection\
monokai\
react\
seti-syntax\
seti-ui\
sort-lines\
spacegray-dark-ui\
Sublime-Style-Column-Selection\
travis-ci-status\
unity-ui\
visual-bell\
Zen\

Watch .jsx files

I am using CSSX to write css in my .jsx files. However, not having autocomplete-css recognize my css is slowing me down.

Can autocomplete-css be set to recognize CSS in a .jsx file?

Unintended CSS suggestions

So I'm trying to hit 'tab' to add comments at the end of a line and it always shows me suggestions even before I've started typing the given style. I'm constantly hitting tab and it's add 'width' at random points.

Screenshot enclosed.

screen shot 2015-07-31 at 12 31 31 am

Autocomplete box only showing properties (no values)

muacfrpqja
Autocompleting a property in CSS causes another autocompletion box with only properties to open up. Can't see values after autocompleting property.

Installed community packages:
emmet
less-than-slash
linter-php
minimap
pigments
wordpress-api

Project.getPath is deprecated.

Use ::getPaths instead

Project.getPath (D:\Program Files\atom\app-0.189.0\resources\app\src\project.js:235:12)
Atom.showSaveDialogSync (D:\Program Files\atom\app-0.189.0\resources\app\src\atom.js:840:62)

Autocomplete triggered in CSS/LESS files on semi colon

Consider the following behaviour:

Example

When I reach the end of the line in my CSS/LESS file, I want to be able to hit enter and go to the next line, not select "width" every time or keep typing on the same line. Why is the autocomplete automatically triggered here? This behaviour is not exhibited in other files like javascript. No autocomplete box shows up after ending a line with a semi colon:

Example

I think this is not desirable, and the autocomplete should not be triggered when the last character is a semi colon in CSS. It has nothing to go on (no alphanumeric characters), so it's just suggesting a complete list of CSS selectors, which is rather pointless.

The value can't see

And I write property name and when I write the values, but it doesn't work

Add !important to autocomplete

I would love to see !important; as an autocomplete addition. I hate having to type it out, and Atom's syntax highlighter already recognizes it.

Doesn't show some completions when properties inlined

When I write "dis", the possible commands will be offered, I choose "display". But next, there's no any sub-options offered, even if I start to type "block". This is a huge miss from Adobe Dreamweaver. Can we see it in autocomplete-css?

Missing colon when writing inline CSS

I code a lot of email designs, where inline CSS is a neccessary evil as some email clients, like Gmail, strip out the CSS in <head>.
The bug I'd like to raise attention to is small but still horribly annoying. For example, if I want to achieve this:
<td style="line-height: 18px
... I'd start typing li and get the line-height auto-complete option and press Enter, but always end up without the :, and have to type it manually, even though there is no situation where I would NOT want one (or is there? if so please tell me!).

,return

Auto fills in data too quickly, a pop out interrupt the flow when after typing in css with a comma. Therefor when hitting return after typing in a comma, autofill inputs the 1st item from the auto fill list.

I would suggest maybe a way to disable auto fill on after a comma is typed to fix this issue or enable min char before the pop out.

screen shot 2015-06-21 at 10 12 14 pm

Complete with Tab is different than Enter

Hello there!

Since I use atom, with or without additional packages, I have a really weird bug in css autocompletion.
While Enter works as expected, Tab uses always the first completion offered via the autocomplete menu and inserts : and ; immediately.

Enter selects the item from the list where my cursor is.

So is there any other option that overwrites that? I'd be curious where that problem comes from.
As I prefer to autocomplete with tab and not with enter, this is really disturbing my workflow.

Debugging Infos:
Atom Version: 1.6.0

Currently used packages:

atom-language-velocity
atom-typescript
auto-detect-indentation
auto-reveal-active-file
color-picker
emmet
keybinding-cheatsheet
language-log
language-qml
language-ts
material-syntax
minimap
minimap-cursorline
minimap-find-and-replace
minimap-git-diff
minimap-highlight-selected
minimap-pigments
minimap-selection
monokai-seti
pigments
project-jump
seti-icons
seti-syntax
seti-ui
set-syntax
sublime-block-comment
tree-view-git-branch

Missing completion on css

Hi,

I'm brand new to Atom - just installed it today.

I tried to do autocomplete for background-color: transparent, but nothing shows up.

Any deadline for getting the last things to work?
I would really like to move from Sublime and to Atom - but this bugs me :)

Best regards,
Martin

too many options when using sass

When using css autocomplete only show available values for the current property:

css

however when using sass, many more values are shown:

sass

ideally this would show the exact same menu seen when editing css.

autocomplete-css doesn't work with Smarty template engine.

I think this issue is because all css codeblocks must stay inside the Smarty's tag {literal} and {/literal}.

How to reproduce:

  1. Create a page.htm and add the following code:
<style type="text/css">
{literal}
div {
    margin-left: 5mm;
    margin-right: 5mm;
    border: 1px solid blue;
    >> IF YOU TRY TO ADD SOMETHING HERE, THE AUTOCOMPLETE DOESN'T WORK.
}
{/literal}
</style>

Using this package for other languages

I want to use this autocomplete package for a different scope. Is there a way to accomplish this without forking the repository and adding my own selector to the provider?

Error when editing .sass files

I keep seeing this error when editing .sass files:

TypeError: Cannot read property 'concat' of null
  at Object.module.exports.getSuggestions (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-css/lib/provider.js:35:65)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:267:56
  at Array.forEach (native)
  at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:246:17)
  at AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61)
  at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:233:19)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61

This seems to happen when I make a small syntax error in the file, such as inserting a semicolon. However, I haven't been able to come up with reliable repro steps.

  • Atom 1.0.11
  • autocomplete-css 0.10.1
  • OS X 10.10.2

Duplicated the symbol '@' in Scss completion

I found an issue about keywords that starts with '@': @import, @extend, @mixin, etc.

The '@' symbol is duplicated as a result of Scss file completion.
For example, when I type @import, Atom shows @@import.

How does it fixed?

atom_import

Autocomplete attempts to add CSS property after commas

From @geebru on July 8, 2015 18:53

See small screencast - http://cl.ly/3V1R3d0r1F3v

Mac OSX 10.10.4 - Atom 1.0.1 - No errors / crashes.

I've noticed when attempting to chain CSS selectors (in SCSS) the autocomplete pop-up will appear after I've typed the comma, meaning when I try to hit Return to go to the next line, I get width: width; instead of a new line.

I changed my settings from autocomplete on Tab to autocomplete on Enter after installing Emmet so it's well within my capabilities to circumvent the issue currently but curious as to why it pulls up this prompt when typing commas in CSS (SCSS)?

Copied from original issue: atom/atom#7799

Refine results for "list-style"

I would wager that none is used more often than armenian, but none doesn't even appear above the fold.

screen shot 2016-08-19 at 9 58 48 am

IMHO the top-ranked results for list-style could be:

none
inherit
initial
unset (currently not included at all)
url()
... and then all the shapes, in alphabetical order.

More generally, is there a way to rank suggestions by popularity instead of alphabetically? Chrome's usage counter lists properties by popularity, but not values. Is that info publicly available somewhere?

If you're receptive to this I can make a PR.

Package.getActivationCommands is deprecated.

Use activationCommands instead of activationEvents in your package.json
Commands should be grouped by selector as follows:

  "activationCommands": {
    "atom-workspace": ["foo:bar", "foo:baz"],
    "atom-text-editor": ["foo:quux"]
  }
Package.getActivationCommands (D:\GreenSoft\Atom\resources\app\src\package.js:766:9)
Package.hasActivationCommands (D:\GreenSoft\Atom\resources\app\src\package.js:691:20)

Can I have semicolon on autocomplete css?

Hi.
I am fairly new to Atom, and coming from Sublime text I really miss one thing:
can I have semicolon on css autocomplete?
So when I do autocomplete on say "color " it becomes "color: ;" ?
Now I have just a colon so it looks like this : "color: "
Thank you.

Invalid values showing (and first) for CSS property values

Not sure if others are experiencing this as well (although a slight variation is mentioned here #15).

Also I apologize if this is a "feature" and not an issue and if so, please close it.

Since the new autocomplete-plus changes, I've been having invalid property values showing first, tabbing, and getting an incorrect one. It has almost (almost, not entirely) defeated the point of using autocomplete css.

Ex.

div {
text-align: ce
postition: re
}

The first choice for text-align for the majority of people is center, not charset (invalid value). Same as position, most people are looking for relative, not review (again, an invalid value, which adds something like // REVIEW: )

I'd like to be able to see it only show valid values for the css property, but it appears to be just doing a lookup for all css props/values that contain those letters (not even in consecutive order). I've attempted to enable the strict matching in the autocomplete-plus package to match my prefix exactly, but it doesn't appear to be working (Maybe I'm doing it wrong?).

I'll attempt (albeit I know unsuccessfully) to find a fix, but if anyone has encountered this or has suggestions/quick fix, please let me know.

Thanks

Suggestions should be offered in order of usefulness, not alphabetically

For example, when I type

p {
    w

I get whitespace and widows before width. 99.9% of the time I'm after width, and I suspect this is true of most devs. I can imagine some won't like this so I guess it should be optional.

Also, I realise I can easily implement this myself by setting a different source for css properties, but I'm not sure if that's the best general solution?

Not working!!!

I need some help with this. The core css autocomplete doesn't work and so doesn't this one! How do I resolve this issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.