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

Follow for log files (preview pane) #17261

Open
theking2 opened this issue Mar 24, 2022 · 5 comments
Open

Follow for log files (preview pane) #17261

theking2 opened this issue Mar 24, 2022 · 5 comments
Labels
Idea-New PowerToy Suggestion for a PowerToy Product-File Explorer Power Toys that touch explorer like Preview Pane

Comments

@theking2
Copy link

Description of the new feature / enhancement

Consider tail -f .log
I often find myself doing a Get-Content -Wait .log to follow the content of a growing (log) file.

How cute would it be that this is build in the File Explorer pre view pane? Not even Directory Opus does that!

Scenario when this would be used?

Watch a growing (log) file for new lines being added.

Supporting information

man
PowerShell

@theking2 theking2 added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Mar 24, 2022
@ghost
Copy link

ghost commented Mar 24, 2022

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed Mar 24, 2022
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Mar 24, 2022
@franky920920 franky920920 reopened this Mar 24, 2022
@franky920920 franky920920 added Idea-New PowerToy Suggestion for a PowerToy Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams and removed Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. labels Mar 24, 2022
@zadjii-msft
Copy link
Member

note to clint: you'd probably need to depend on us for microsoft/terminal#6999, so that we can actually create a TermControl that you can embed yourself.

@crutkas
Copy link
Member

crutkas commented Aug 1, 2022

Thanks @zadjii-msft.

@theking2 i think anything we do here would be less performant and more overhead than just doing this via terminal window. Other issue would be which thing views a log file, While preview panes are mini-apps, only one gets the rights to be the previewer for the file type.

@crutkas crutkas removed the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Aug 1, 2022
@crutkas crutkas changed the title Follow for log files Follow for log files (preview pane) Aug 1, 2022
@Aaron-Junker
Copy link
Collaborator

@crutkas This actually could work with Monaco. When it sending new content to the webview every second.

@theking2
Copy link
Author

theking2 commented Aug 2, 2022

This could indeed be done with powershell/terminal by doing something like:

            {
                "closeOnExit": "never",
                "colorScheme": "Campbell",
                "commandline": "powershell.exe \"Get-Content php_error.log -Wait\"",
                "cursorShape": "vintage",
                "guid": "{643bdc24-5415-5e5a-8420-281ffc7d4f19}",
                "name": "PHP Errors",
                "startingDirectory": "c:\\wamp\\logs",
                "suppressApplicationTitle": false,
                "useAcrylic": true
            },

Which will follow the php_error.log content. No need for a separate tool here.

@Aaron-Junker Aaron-Junker added the Product-File Explorer Power Toys that touch explorer like Preview Pane label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-New PowerToy Suggestion for a PowerToy Product-File Explorer Power Toys that touch explorer like Preview Pane
Projects
Status: No status
Development

No branches or pull requests

5 participants