tophf
dc1cd890ee
notify event subscribers when toggling the style via Alt-Enter
2018-01-14 17:40:09 +03:00
tophf
3c15521fc2
tweak autocomplete helper
...
* use the faster getStyleAtPos
* autocomplete !important on typing !
* don't autocomplete hex colors
2018-01-14 17:10:54 +03:00
tophf
eaed0de486
init autocomplete/blur/focus for usercss in a common hook
2018-01-14 15:57:29 +03:00
tophf
fb1ef71f25
don't save the style in toggleStyle; use data-hotkey-tooltip
2018-01-12 14:32:15 +03:00
tophf
9affcd13bc
don't preview unsaved styles
2018-01-12 14:11:24 +03:00
tophf
989df35b05
live preview in editor
...
* refreshAllTabs was extracted
* ...and fixed to use each frame's url when getting the styles
2018-01-12 00:54:36 +03:00
tophf
022e588c97
allow errors in usercss when saving in editor and live-reloading
2018-01-07 16:36:30 +03:00
tophf
a6e2cf47ed
don't update the tally when the dialog isn't shown
2018-01-07 12:52:31 +03:00
tophf
d2cba96e10
refactor CSSLint
...
* reduce linting delay
* parse mozformat in worker
* allow empty functions in 'filter:' property
https://drafts.fxtf.org/filter-effects/#supported-filter-functions
* support comma-separated list in :lang()
* strip vendor prefix in isLiteral()
2018-01-07 12:31:23 +03:00
tophf
385dda9923
fixup 227dce01: new styles don't have usercssData
2018-01-06 09:50:48 +03:00
tophf
4a7c675d06
fix '.add-applies-to' click listener
2018-01-06 09:31:37 +03:00
tophf
227dce0177
don't disable Beautify (let the user decide); code cosmetics
2018-01-05 14:05:35 +03:00
tophf
bced23052c
remove some unnecessary deepCopy calls
2018-01-05 14:05:35 +03:00
tophf
bf17c7de94
preserve section indentation in usercss template
2018-01-04 16:45:41 +03:00
tophf
3418ac9cb9
FF: support private/container tabs
2018-01-03 10:43:56 +03:00
tophf
27fe9fa9db
search/replace in extra CodeMirror boxes e.g. lint config
2018-01-01 10:35:22 +03:00
tophf
b2100ea853
fixes for global search/replace
...
* Enter key in input fields:
* [Find mode] closes the dialog and focuses the matched text
* [Replace mode] performs a single replace action
* Undo button checks the new CM changeGeneration and disables itself
if the changes were already undone
* doUndo focuses the visible undo button
2018-01-01 09:56:41 +03:00
tophf
a66c377d8a
fix scrolling over linter issues in usercss mode
2017-12-28 07:01:43 +03:00
tophf
f2efff64fd
FF weird bug workaround: delay initLint() by 100ms
2017-12-25 09:28:26 +03:00
tophf
5df76b04e2
disable #save button right after opening a style
2017-12-25 02:26:01 +03:00
tophf
306b21b75e
show Ctrl-Pause hotkey in keymap info using a dummy command
2017-12-24 12:28:33 +03:00
tophf
57806bed45
don't set sessionStorage.justEditedStyleId to null
2017-12-24 02:37:26 +03:00
tophf
487bc77baa
actually replace 'usercssTemplate'
2017-12-24 01:50:53 +03:00
tophf
9279390e8c
handle double-click between number and %
2017-12-23 09:51:28 +03:00
tophf
8c96165fb4
refactor and improve selectTokenOnDoubleclick logic
2017-12-23 05:39:06 +03:00
tophf
a249167539
remove the no longer used defocusEditor command
2017-12-22 18:35:46 +03:00
tophf
d6c595d94e
detect double-clicked token boundaries better
2017-12-22 16:55:56 +03:00
tophf
068f23b029
fixup: include -+, exclude whitespace at line start
2017-12-22 16:29:52 +03:00
tophf
bf6b4eda83
select entire CSS token on double click
...
* .class-name
* property-name
* #some-id
* #123
* -webkit-any
* !important
* 12.5
2017-12-22 16:23:20 +03:00
tophf
d0380f76c3
rewrite colorview to use CodeMirror::TextMarker
...
* solves all problems with glitching on selection etc.
* perceived performance is same due to lazy-processing
* colors unsupported in current browser are displayed internally as RGB
* the color text is highlighted in the editor when popup is invoked
2017-12-22 11:22:35 +03:00
tophf
2dfaa22c35
Ctrl-Pause defocuses/focuses the editor
2017-12-22 11:22:02 +03:00
tophf
7d8507743d
add the missing CSS colors to codemirror parser
2017-12-20 00:42:51 +03:00
tophf
e50ff316ba
toggle narrow width mode tooltips via html+css; code cosmetics
2017-12-19 02:48:47 +03:00
tophf
1348eeb4e3
code cosmetics
2017-12-18 16:48:33 +03:00
tophf
4ecb6e7bc2
optimistically show 1 in tally only for a code match
2017-12-18 11:28:11 +03:00
tophf
31fd551264
trivial speed-ups for the single editor case
2017-12-18 10:27:50 +03:00
tophf
d10e83d15c
editor: rewrite global search/replace
2017-12-18 10:27:50 +03:00
tophf
fd047f8323
move getRealColors to colorpicker and reuse it
2017-12-18 10:27:50 +03:00
tophf
97e486e139
code cosmetics: silence a warning in edit.css
2017-12-18 10:27:50 +03:00
tophf
db2c4cd6fc
use standard font size in keymap info dialog
2017-12-18 10:27:50 +03:00
tophf
1f45618954
group similar items in keymap option selector
2017-12-18 10:27:50 +03:00
tophf
70d935d1a0
Ctrl-R to invoke replace in pcDefault/sublime keymaps
2017-12-18 10:27:50 +03:00
tophf
b78110aa1c
.CodeMirror-dialog: shorten yellow highlight bright phase
2017-12-18 10:27:50 +03:00
tophf
be20b5a8b4
match-highlighter: always use originalToken
2017-12-18 10:27:50 +03:00
tophf
8119dd4f62
match-highlighter: skip exact tokens highlighted by search
2017-12-18 10:27:50 +03:00
tophf
001db9a19f
make editor fully clean on saving
2017-12-18 10:27:50 +03:00
tophf
9e11435923
make editor permanently dirty when a section is deleted
2017-12-18 10:27:50 +03:00
tophf
748b9afdb4
remember last used search text in editor
2017-12-14 11:35:32 +03:00
tophf
cc5a254e01
make multi-section search instantaneous
2017-12-14 11:20:22 +03:00
tophf
49a995afae
fixup 1c68ac1a: init the find hook after the original one
2017-12-14 09:27:46 +03:00