Skip to content

Document opened with range does not scroll to show selected range #1703

Closed

Description

@jeremypw

What Happened?

Opening a document from the commandline with the -g option to select a certain range does not always show the specified document with the selected range in view if to do so scrolling is required.

Steps to Reproduce

Open Code with a command line in the form

io.elementary.code -g [START-LINE].[START_COL]-[END-LINE].[END-COL] <file-path>

Notice that the start of the selection is not always in view.

Expected Behavior

The view should show the specified selected range.

OS Version

8.x (Circe)

OS Architecture

amd64 (on most hardwares)

Session Type

Secure Session (Wayland, This is the default)

Software Version

Latest release (I have run all updates)

Log Output

Hardware Info

No response

Activity

  1. added theissue type on Feb 28, 2026
  2. Dipanshusinghh commented on May 18, 2026

    @Dipanshusinghh
    Contributor

    @jeremypw .,
    I hadd like to work on this.
    The selected range appears to be applied correctly,
    but the view is not always scrolling to keep the selection visible;.

  3. jeremypw commented on May 18, 2026

    @jeremypw
    CollaboratorAuthor

    @Dipanshusinghh PR #1704 is meant to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions