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

Automatic scrolling to the last line (e.g. tail log files) #15420

Closed
1 task done
fwcd opened this issue Jul 29, 2024 · 2 comments
Closed
1 task done

Automatic scrolling to the last line (e.g. tail log files) #15420

fwcd opened this issue Jul 29, 2024 · 2 comments
Labels
editor Feedback for code editing, formatting, editor iterations, etc feature [core label] logging Feedback for logs, debug output, etc setting Feedback for preferences, configuration, etc

Comments

@fwcd
Copy link

fwcd commented Jul 29, 2024

Check for existing issues

  • Completed

Describe the feature

It would be nice if Zed had a way to automatically "stay scrolled to the bottom line" even as a file gets appended. This would make viewing log files a lot more convenient.

If applicable, add mockups / screenshots to help present your vision of the feature

It seems as if Zed already implements this to some degree, but only if the last line is at the top (at which point the logs above it aren't visible, so that makes it not very useful):

Screen.Recording.2024-07-29.at.13.54.44.mov

I can see why the current behavior would be useful in an editing context, so perhaps the best solution would be having some kind of toggle for this, like in VSCode's output panel:

image

(Sorry if there is already a way of doing this, I couldn't find it at least)

@fwcd fwcd added admin read feature [core label] labels Jul 29, 2024
@Moshyfawn Moshyfawn added editor Feedback for code editing, formatting, editor iterations, etc setting Feedback for preferences, configuration, etc logging Feedback for logs, debug output, etc and removed triage labels Jul 29, 2024
@notpeter notpeter changed the title Automatic scrolling to the last line (e.g. for log files) Automatic scrolling to the last line (e.g. tail log files) Jul 29, 2024
@notpeter
Copy link
Member

I like it.

In the meantime as a workaround I use a task with tail -f:

  {
    "label": "tail zed logs",
    "command": "tail -f ~/Library/Logs/Zed/zed.log"
  },

@notpeter
Copy link
Member

notpeter commented Dec 3, 2024

I'm going to close in favor of:

Thanks for reporting.

@notpeter notpeter closed this as completed Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor Feedback for code editing, formatting, editor iterations, etc feature [core label] logging Feedback for logs, debug output, etc setting Feedback for preferences, configuration, etc
Projects
None yet
Development

No branches or pull requests

3 participants