You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Viktor Nemes 191113aa5f Load selected lines from query params (#878)
* Make the editorRef as a required parameter of useGutterClickHandler

For the external line number selection it is required that we access the CodeMirror editor anywhere in the hook

* Refactor the line highlight logic to handle "unknown" lines as non-selected

Only execute the highlight when there is a valid selection (there are some keys set in state.selected)
Additionally also execute the highlight logic when the line numbers are not visible (E.g. line.gutter is falsy)

* Pass in the selectedLines from the query string and implement the pre-selection logic

* Rename useGutterClickHandler to better explain its function

* Adding nemesv as contributor

* quick tweak

* tweak
5 years ago
..
Themes remove capitalize util 5 years ago
style Improve mobile UI (#875) 5 years ago
svg clean up menu controls position, about page 6 years ago
Announcement.js new announcement 5 years ago
ApiContext.js Merge in 4.0.0 (#850) 5 years ago
AuthContext.js Merge in 4.0.0 (#850) 5 years ago
BackgroundSelect.js improve background select (#873) 5 years ago
Billing.js move to use meta and shift symbols to define keyboard listening 5 years ago
Button.js create delete button from /snippets 5 years ago
Carbon.js Load selected lines from query params (#878) 5 years ago
ColorPicker.js Bundle size (#844) 5 years ago
ConfirmButton.js create delete button from /snippets 5 years ago
Dropdown.js disable spellcheck on inputs 6 years ago
Editor.js fix this.exportImage 5 years ago
EditorContainer.js tweak login button position 5 years ago
ExportMenu.js add loading state to export button (#876) 5 years ago
FontFace.js Merge in 4.0.0 (#850) 5 years ago
FontSelect.js close settings dialog on font upload 6 years ago
Footer.js Improve mobile UI (#875) 5 years ago
Header.js better header on mobile 5 years ago
ImagePicker.js move to use meta and shift symbols to define keyboard listening 5 years ago
Input.js Add support for first line number setting (#849) 5 years ago
ListSetting.js Merge in 4.0.0 (#850) 5 years ago
LoginButton.js move login button dropdown to right 5 years ago
MenuButton.js Merge in 4.0.0 (#850) 5 years ago
Meta.js Old TODOs / PWA work (#866) 5 years ago
Overlay.js enable react in scope lint rule 6 years ago
Page.js Improve mobile UI (#875) 5 years ago
PhotoCredit.js Use Unsplash API (#301) 7 years ago
Popout.js improve keyboard navigation with escape to close 6 years ago
Presets.js better outlining for preset list 5 years ago
RandomImage.js move to use meta and shift symbols to define keyboard listening 5 years ago
SelectionEditor.js use useReducer for bold, italics, underline, and color 5 years ago
Settings.js move to use meta and shift symbols to define keyboard listening 5 years ago
Slider.js Add support for first line number setting (#849) 5 years ago
SnippetToolbar.js move to use meta and shift symbols to define keyboard listening 5 years ago
SpinnerWrapper.js use editor mount for loading instead of carbon's 6 years ago
ThemeSelect.js radio button for windowtheme 6 years ago
Toasts.js fix toast container position 5 years ago
Toggle.js use checkbox input for toggle (#872) 5 years ago
Toolbar.js Improve mobile UI (#875) 5 years ago
TweetButton.js move to use meta and shift symbols to define keyboard listening 5 years ago
WindowControls.js move to use meta and shift symbols to define keyboard listening 5 years ago
WindowPointer.js minor aesthetic tweaks 6 years ago