Skip to content

Fix: Shortcuts and some styling for editor#2783

Merged
mykalmax merged 9 commits intomainfrom
fix-editor-shortcuts-styling
Jun 20, 2024
Merged

Fix: Shortcuts and some styling for editor#2783
mykalmax merged 9 commits intomainfrom
fix-editor-shortcuts-styling

Conversation

@mykalmax
Copy link
Contributor

@mykalmax mykalmax commented Jun 17, 2024

Fix jumping cursor when user typing
Run custom query on Cmd + Enter
Show suggestion in uppercase in user typing in uppercase

@mykalmax mykalmax requested a review from caiters June 20, 2024 17:57
if (isNotNil(completionResult)) {
const options = completionResult.options ?? []
completionResult.options = options.concat(suggestions)
completionResult.map = () => null // Updates sussgestions to switch between lower and upper case
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
completionResult.map = () => null // Updates sussgestions to switch between lower and upper case
completionResult.map = () => null // Updates suggestions to switch between lower and upper case

const state = editorView.state
const text = state.doc.toString()

if (text === content || isNil(diffChars)) return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the relationship between text and content?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

text - is current editor's content, I'll rename

Copy link
Contributor

@caiters caiters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cursor fix works super well, nice job

@mykalmax mykalmax merged commit f5cbe62 into main Jun 20, 2024
@mykalmax mykalmax deleted the fix-editor-shortcuts-styling branch June 20, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants