Skip to content

Search Results - Improve truncation - Show full line, Truncate on the Left or the Right #273410

@shoulders

Description

@shoulders
Version: 1.105.1 (user setup)
Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084
Date: 2025-10-14T22:33:36.618Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100

This has been mentioned a few times in the past and i think it should be revisited as I am struggling with how truncation works

See this example

  • A line is truncated when it is over a certain length.
    • this should be a configurable option.
  • The truncation happens on the beginning of the line
    • I read, left to right, and find this tricky to use. I would prefer the truncation to happen on the end of the line.
Image

Proposed options

  • search.resultsTruncation
    • Off (no truncation)
    • Beginning of Line
    • End of line
    • Both (the search term would be in the middle of 2 ... = good for context)
  • search.allowedSizeBeforeTruncation
    • 123 ( a number of characters before truncation happens)

Links

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions