Cudatext: Feature request: auto_complete_file_uri for CSS lexer

Created on 11 Jul 2021  路  16Comments  路  Source: Alexey-T/CudaText

Captura de tela de 2021-07-11 00-54-04

In HTML lexer it's OK

Captura de tela de 2021-07-11 00-55-05

It's interesting on CSS lexer too

bug enhancement

All 16 comments

It's OK wish, but not simple to add, wait.

Added this in the beta.
beta in /c folder.
I tested on 3 variants of url():

  • quote '
  • quote "
  • no quote
body{
    background: url('test/images/untitled.jpg') url("../user/Pictures/pro.png") url(../user/Pictures/dot.png) #ffa red hsl(0, 100%, 50%);
}

note: you cannot write path beginning with / .

@halfbrained @JairoMartinezA @miroslavmatas

With single quotes and double quotes did not work in last beta. Only without quotes

It worked here, e.g. in

url('test/images/untitled.jpg') url("../user/Pictures/pro.png")

So give an example of your CSS text and what filenames you choose in file-listbox.
or a video?

Basically test code from html-lexer, without quotes works:

scr0

with quotes - doesn't:

scr2

Cud has a problem here- it cannot detect that we have CSS lexer for that caret pos. so it doesn't highlite this fragment as CSS (it is green).

So give an example of your CSS text and what filenames you choose in file-listbox.
or a video?

Screenshot_3
Screenshot_4
Screenshot_5

Hm, cannot reproduce.
did you get the last beta? http://www.uvviewsoft.com/c/
with almost the same file - test.html and pictures in the same folder.
bb

Elton, attach here your user.json file, or send to support(at)uvviewsoft.com
AND files 'lexer*.json' .

Still cannot confirm- works ok with your 3 configs. @halfbrained do you confirm last bug?

This way it works perfectly (fresh install v137.3.3h)

css_compl

Elton, does it work for you? with quotes?

I will test with last beta

Pls test on clean Cud, maybe some autocompletion plugins make bad here..

Without quotes works with autoshow and with quotes works with shortcut key 'Ctrl+space'

So it's all right!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

charliewales picture charliewales  路  4Comments

jczanfona picture jczanfona  路  5Comments

Alexey-T picture Alexey-T  路  5Comments

JairoMartinezA picture JairoMartinezA  路  7Comments

Alexey-T picture Alexey-T  路  7Comments