Skip to content

dbeaver/cloudbeaver#4138 feat: support inline editing of multi-line v…#4341

Merged
devnaumov merged 7 commits into
develfrom
4138-the-interface-may-be-misleading-and-cause-update-problems
May 20, 2026
Merged

dbeaver/cloudbeaver#4138 feat: support inline editing of multi-line v…#4341
devnaumov merged 7 commits into
develfrom
4138-the-interface-may-be-misleading-and-cause-update-problems

Conversation

@SychevAndrey
Copy link
Copy Markdown
Contributor

…alues in data grid cells

  • TextEditor: switch to <textarea rows=1> so newlines are preserved when editing. Suppress the trailing insertLineBreak from the Enter that opens the editor (would otherwise wipe the auto-selected value).
  • ResultSetFormatAction.truncateText: substitute \n, \r, \r\n, \t with visible glyphs (↵, ␍, →) and collapse other control chars to a space in a single pass.

Perf note: the new replace should be faster than the prior split('') + map + join. No intermediate array allocations, and the callback runs only on matched chars (which are sparse in display text). \p{Cc} also expands coverage from charCode < 32 to include DEL and C1 controls (U+007F, U+0080–U+009F). (closer to Dbeaver behavior)

…cells

- TextEditor: switch <input> to <textarea rows=1> so newlines are preserved when editing. Suppress the trailing insertLineBreak from the Enter that opens the editor (would otherwise wipe the auto-selected value).
- ResultSetFormatAction.truncateText: substitute \n, \r, \r\n, \t with
  visible glyphs (↵, ␍, →) and collapse other control chars to a space
  in a single pass.

Perf note: the new replace should be faster than the prior
split('') + map + join. No intermediate array allocations, and the
callback runs only on matched chars (which are sparse in display text). \p{Cc} also expands coverage from charCode < 32 to include DEL and C1 controls (U+007F, U+0080–U+009F). (closer to Dbeaver behavior)
@SychevAndrey SychevAndrey self-assigned this May 14, 2026
@SychevAndrey SychevAndrey linked an issue May 14, 2026 that may be closed by this pull request
@SychevAndrey
Copy link
Copy Markdown
Contributor Author

Screen.Recording.2026-05-14.at.10.30.05.mov

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented May 14, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

sergeyteleshev
sergeyteleshev previously approved these changes May 14, 2026
devnaumov
devnaumov previously approved these changes May 14, 2026
@SychevAndrey SychevAndrey dismissed stale reviews from devnaumov and sergeyteleshev via 95d4dec May 18, 2026 16:31
@devnaumov devnaumov merged commit b84031b into devel May 20, 2026
8 of 10 checks passed
@devnaumov devnaumov deleted the 4138-the-interface-may-be-misleading-and-cause-update-problems branch May 20, 2026 12:28
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.

The interface may be misleading and cause update problems

4 participants