Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Retain Front Matter rail's scroll context #535

Closed
BillRaymond opened this issue Mar 14, 2023 · 3 comments
Closed

Enhancement: Retain Front Matter rail's scroll context #535

BillRaymond opened this issue Mar 14, 2023 · 3 comments

Comments

@BillRaymond
Copy link

Is your feature request related to a problem? Please describe.
While editing metadata in the Front Matter rail, you often have to switch context to a new file or tab. Take for example, selecting an image, which will open the Frontmatter dashboard.

However, when you return to the file, you are brought back up to the top of the rail (in my case it reads "Global Settings"). This context-switch requires you to scroll back down the rail to find where you left off.

Describe the solution you'd like
When the user leaves a file and returns and the Front Matter rail is currently open, return to the location where the user left off.

Describe alternatives you've considered
Since this is an issue with the rail in general, as a user that is just getting started, I am regularly losing my place and finding editing to be hard. Here are some thoughts, in no general order:

  • Remember the rail's current scroll position based each file being accessed (ex if you are writing two posts at the same time, the rail remembers the scroll location for each)
  • Provide rail modes, such as "metadata", "actions", etc. When you are in editing mode, metadata starts at the top. When you are in actions, the rail moves to "other actions"
  • Move the SEO Status area to the bottom of the metadata. I think users will be typing their metadata from top-to-bottom, so perhaps having the SEO status underneath the metadata editing section is more useful anyway?

Additional context
As you can see in the following animation, any context switching to another tab in VSC resets the rail, even when performing in-line metadata updates.

frontmatter-context-switch-issue

@BillRaymond BillRaymond added the enhancement New feature or request label Mar 14, 2023
@estruyf
Copy link
Owner

estruyf commented Mar 15, 2023

Thanks @BillRaymond, makes so much sense!

@estruyf
Copy link
Owner

estruyf commented Mar 15, 2023

The first implementation has been completed and can be tested out in the latest beta.

Screen.Recording.2023-03-15.at.09.55.50.mov

estruyf added a commit that referenced this issue Mar 15, 2023
@BillRaymond
Copy link
Author

Thanks! I just tested this and it does work, thank you!

So you are aware, if you are brought to the FrontMatter Dashboard and close it without selecting something, the rail returns to the top like it did previously. The reason I know this is because my content is for a podcast where I select various guests and I forgot which person I was supposed to select. This is probably an edge case but thought you would like to be aware.

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

No branches or pull requests

2 participants