Skip to content

Directory to save from Plots pane always uses working directory #2841

Description

@juliasilge

If you change the directory where you want to save a plot, using the Plots pane:

Screenshot 2024-04-22 at 12 16 31 PM

that directory choice does not persist beyond saving that single file. If you go to save another plot, the directory populates with the working directory again.

Definitely not needed for Public Beta, but let's eventually make this so when you choose a new directory there, it is retained at least until you quit Positron or switch to a different workspace or similar.

Activity

  1. juliasilge commented on Apr 22, 2024

    @juliasilge
    MemberAuthor

    I discovered this need while verifying #2657

  2. added this to the Release Candidate milestone on Apr 22, 2024
  3. jmcphers commented on Apr 22, 2024

    @jmcphers
    Collaborator

    This would pretty easy to remember via the Storage Service. For example here's where we use it to remember which runtime to start in the workspace:

    // Save this runtime as the affiliated runtime for the current workspace.
    this._storageService.store(this.storageKeyForRuntime(session.runtimeMetadata),
    JSON.stringify(session.runtimeMetadata),
    StorageScope.WORKSPACE,
    StorageTarget.MACHINE);

  4. juliasilge commented on Apr 23, 2024

    @juliasilge
    MemberAuthor

    FWIW I kind of think StorageScope.WORKSPACE (the least comprehensive option) is too much for this behavior; I wouldn't necessarily expect the directory I choose to persist in a workspace beyond my current session.

  5. jmcphers commented on Feb 5, 2025

    @jmcphers
    Collaborator

    Note: We could use the new ephemeral state storage service to save the default for the current session only.

  6. JuanTejedor commented on Sep 7, 2026

    @JuanTejedor

    Up! This would be very useful: not only remembering the last export directory, but also the format.

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

    area: plotsIssues related to Plots category.area: viewerIssues related to Viewer category.enhancementNew feature or requestsharp-edge

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions