Skip to content

Conversation

Jack251970
Copy link
Member

@Jack251970 Jack251970 commented Jun 4, 2025

Changes

  • Support More Information for Files and Folders Tooltips
  • Add Custom Preview Panel Support for Folder Results
  • Add MMM support for date format

Resolve #3518.

Test

Change option here:

image

And search for files & folders:

Screenshot 2025-06-04 171040

Screenshot 2025-06-04 171046

image

Add MMM support for date format:

image

@Jack251970 Jack251970 mentioned this pull request Jun 4, 2025
@Jack251970 Jack251970 requested a review from Copilot June 4, 2025 09:20

This comment has been minimized.

Copy link

gitstream-cm bot commented Jun 4, 2025

🥷 Code experts: no user but you matched threshold 10

Jack251970 has most 👩‍💻 activity in the files.
Yusyuriv, Jack251970 have most 🧠 knowledge in the files.

See details

Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml

Activity based on git-commit:

Jack251970
JUN
MAY 10 additions & 2 deletions
APR
MAR
FEB
JAN

Knowledge based on git-blame:
Jack251970: 6%
Yusyuriv: 2%

Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs

Activity based on git-commit:

Jack251970
JUN
MAY
APR 10 additions & 12 deletions
MAR
FEB
JAN

Knowledge based on git-blame:
Yusyuriv: 16%
Jack251970: 4%

Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs

Activity based on git-commit:

Jack251970
JUN
MAY 0 additions & 1 deletions
APR
MAR
FEB
JAN

Knowledge based on git-blame:
Yusyuriv: 8%

Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml

Activity based on git-commit:

Jack251970
JUN
MAY
APR 5 additions & 5 deletions
MAR 2066 additions & 1972 deletions
FEB
JAN

Knowledge based on git-blame:
Jack251970: 89%

Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs

Activity based on git-commit:

Jack251970
JUN
MAY 13 additions & 9 deletions
APR 1 additions & 2 deletions
MAR
FEB
JAN

Knowledge based on git-blame:
Yusyuriv: 66%
Jack251970: 11%

To learn more about /:\ gitStream - Visit our Docs

Copilot

This comment was marked as outdated.

Copy link
Contributor

coderabbitai bot commented Jun 4, 2025

Warning

Rate limit exceeded

@Jack251970 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 23 minutes and 39 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 475db2b and a04829b.

📒 Files selected for processing (1)
  • Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml (12 hunks)
📝 Walkthrough

Walkthrough

This change introduces a new setting to the Explorer plugin allowing users to display more detailed information—such as size, creation date, and modification date—in file, folder, and volume tooltips. It updates UI resources, settings, tooltip logic, and metadata retrieval methods to support and conditionally display this enhanced tooltip information.

Changes

Files/Paths Change Summary
Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml Added new localized strings for the tooltip setting and detailed info formats.
Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs Added DisplayMoreInformationInToolTip boolean property to settings.
Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml Reformatted XAML indentation and attribute formatting; no functional changes.
Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs Tooltip logic updated to conditionally show detailed info; added helpers for formatting tooltip details; logging added.
Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs Refactored metadata retrieval; added static methods for file/folder size and dates with error handling and timeout; updated constructor signature; async image loading added.
Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml Changed file size TextBlock binding mode to OneWay.
Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs Extended supported date formats with additional variants including abbreviated month names.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ExplorerPlugin
    participant ResultManager
    participant PreviewPanel

    User->>ExplorerPlugin: Search for files/folders
    ExplorerPlugin->>ResultManager: Build search results
    ResultManager->>Settings: Check DisplayMoreInformationInToolTip
    alt If enabled
        ResultManager->>PreviewPanel: Get size, creation, modification info
        PreviewPanel-->>ResultManager: Return formatted details
        ResultManager->>ExplorerPlugin: Set detailed tooltip
    else If disabled
        ResultManager->>ExplorerPlugin: Set plain path as tooltip
    end
    ExplorerPlugin-->>User: Display search results with tooltips
Loading

Assessment against linked issues

Objective Addressed Explanation
Display file tooltip with properties: size, modification date, and age in search results (#3518)

Assessment against linked issues: Out-of-scope changes

No out-of-scope changes found.

Possibly related PRs

  • Flow-Launcher/Flow.Launcher#3579: Adds file age display and toggle; both PRs modify PreviewPanel and settings for metadata display, but this PR generalizes to all detailed info.

Suggested labels

bug, kind/ui

Suggested reviewers

  • onesounds
  • taooceros

Poem

🐇 A hop and a skip, new tooltips arrive,
With size and dates to help you thrive!
Explorer now whispers secrets so neat,
Of files and folders beneath your feet.
Check a box, see more—what a treat!
✨📁


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Nitpick comments (1)
Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs (1)

94-105: Consider refactoring to reduce code duplication.

The file and folder date formatting methods share significant logic. Consider extracting the common formatting logic into a shared helper method.

+private static string FormatDateTime(DateTime dateTime, string dateFormat, string timeFormat, bool showAge)
+{
+    var formattedDate = dateTime.ToString($"{dateFormat} {timeFormat}", CultureInfo.CurrentCulture);
+    return showAge ? $"{GetFileAge(dateTime)} - {formattedDate}" : formattedDate;
+}

 public static string GetFileCreatedAt(string filePath, string previewPanelDateFormat, string previewPanelTimeFormat, bool showFileAgeInPreviewPanel)
 {
     try
     {
         var createdDate = File.GetCreationTime(filePath);
-        var formattedDate = createdDate.ToString(
-            $"{previewPanelDateFormat} {previewPanelTimeFormat}",
-            CultureInfo.CurrentCulture
-        );
-
-        var result = formattedDate;
-        if (showFileAgeInPreviewPanel) result = $"{GetFileAge(createdDate)} - {formattedDate}";
-        return result;
+        return FormatDateTime(createdDate, previewPanelDateFormat, previewPanelTimeFormat, showFileAgeInPreviewPanel);
     }
     catch (Exception)
     {
         return Main.Context.API.GetTranslation("plugin_explorer_plugin_tooltip_more_info_unknown");
     }
 }

Also applies to: 107-118, 138-149, 151-162

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 93c2b1b and 85c0387.

📒 Files selected for processing (5)
  • Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml (2 hunks)
  • Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs (5 hunks)
  • Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs (1 hunks)
  • Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml (11 hunks)
  • Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs (3 hunks)
🧰 Additional context used
🪛 GitHub Actions: Check Spelling
Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml

[warning] 501-501: previewpanel is not a recognized word. (unrecognized-spelling)


[warning] 508-508: previewpanel is not a recognized word. (unrecognized-spelling)


[warning] 512-512: previewpanel is not a recognized word. (unrecognized-spelling)


[warning] 516-516: previewpanel is not a recognized word. (unrecognized-spelling)


[warning] 729-729: lbx is not a recognized word. (unrecognized-spelling)


[warning] 786-786: lbx is not a recognized word. (unrecognized-spelling)


[warning] 789-789: lbx is not a recognized word. (unrecognized-spelling)


[warning] 790-790: Lbx is not a recognized word. (unrecognized-spelling)

Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs

[warning] 134-134: opendir is not a recognized word. (unrecognized-spelling)


[warning] 149-149: opendir is not a recognized word. (unrecognized-spelling)


[warning] 174-174: drv is not a recognized word. (unrecognized-spelling)


[warning] 175-175: drv is not a recognized word. (unrecognized-spelling)


[warning] 176-176: totalspace is not a recognized word. (unrecognized-spelling)


[warning] 177-177: drv is not a recognized word. (unrecognized-spelling)


[warning] 177-177: drv is not a recognized word. (unrecognized-spelling)


[warning] 245-245: openresultfolder is not a recognized word. (unrecognized-spelling)

⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: gitStream workflow automation
  • GitHub Check: gitStream.cm
  • GitHub Check: build
🔇 Additional comments (10)
Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs (1)

40-40: LGTM! Clean implementation of the new setting.

The property follows established patterns in the class with a sensible default value and descriptive name.

Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml (2)

201-201: LGTM! Proper XAML implementation for the new setting.

The Grid layout is correctly maintained by adding a new RowDefinition and shifting subsequent elements. The CheckBox is properly bound and uses appropriate localization.

Also applies to: 226-234


235-403: Grid row indices properly adjusted.

All subsequent controls have been correctly shifted down by one row to accommodate the new setting.

Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs (3)

102-102: LGTM! Proper PreviewPanel integration with lazy initialization.

The changes correctly replace the Preview property with PreviewPanel and pass the necessary parameters (Settings, path, ResultType).

Also applies to: 286-286


163-163: Good conditional tooltip implementation.

The logic properly checks the setting and falls back to the simple path when detailed information is disabled.

Also applies to: 317-317


348-367:

❓ Verification inconclusive

Verify PreviewPanel static methods exist and add error handling.

The implementation looks good but needs verification that the static methods are available and proper error handling for IO operations.

Please run this script to verify the PreviewPanel static methods exist:

Consider adding try-catch blocks around the PreviewPanel method calls to handle potential IO exceptions gracefully:

 private static string GetMoreInfoToolTip(string filePath, ResultType type)
 {
+    try
+    {
         switch (type)
         {
             case ResultType.Folder:
                 var folderSize = PreviewPanel.GetFolderSize(filePath);
                 // ... rest of implementation
             case ResultType.File:
                 var fileSize = PreviewPanel.GetFileSize(filePath);
                 // ... rest of implementation
             default:
                 return filePath;
         }
+    }
+    catch (Exception)
+    {
+        return filePath; // Fallback to simple path on error
+    }
 }

🏁 Script executed:

#!/bin/bash
# Verify PreviewPanel static methods are implemented
echo "Searching for PreviewPanel static methods..."

# Check for GetFileSize, GetFolderSize methods
ast-grep --pattern $'class PreviewPanel {
  $$$
  static $_ GetFileSize($_) {
    $$$
  }
  $$$
}'

# Check for date/time methods
ast-grep --pattern $'class PreviewPanel {
  $$$
  static $_ GetFileCreatedAt($$$) {
    $$$
  }
  $$$
}'

# Check for GetFolderSize method
ast-grep --pattern $'class PreviewPanel {
  $$$
  static $_ GetFolderSize($_) {
    $$$
  }
  $$$
}'

Length of output: 406


🏁 Script executed:

#!/bin/bash
echo "Locating PreviewPanel class definition..."
preview_file=$(rg -l "^class PreviewPanel")
if [ -z "$preview_file" ]; then
  echo "❌ PreviewPanel class not found in repository."
  exit 0
fi

echo "✅ Found PreviewPanel in: $preview_file"
echo
echo "Listing static methods in PreviewPanel starting with 'Get':"
grep -n "static .*Get" "$preview_file"

Length of output: 265


Ensure PreviewPanel methods exist and guard against IO errors

Before merging, please confirm that all the PreviewPanel static helpers you’re calling are exposed by the plugin or a referenced assembly—e.g.

  • PreviewPanel.GetFileSize(string)
  • PreviewPanel.GetFolderSize(string)
  • PreviewPanel.GetFileCreatedAt(string, …)
  • PreviewPanel.GetFolderCreatedAt(string, …)
  • PreviewPanel.GetFileLastModifiedAt(string, …)
  • PreviewPanel.GetFolderLastModifiedAt(string, …)

If any of these live in another project or assembly, make sure you’ve added the correct reference or NuGet package.

Then wrap the calls in a try/catch around the switch so that any unexpected IO errors fall back to returning the path:

 private static string GetMoreInfoToolTip(string filePath, ResultType type)
 {
+    try
+    {
         switch (type)
         {
             case ResultType.Folder:
                 var folderSize = PreviewPanel.GetFolderSize(filePath);
                 // …same as before
             case ResultType.File:
                 var fileSize = PreviewPanel.GetFileSize(filePath);
                 // …same as before
             default:
                 return filePath;
         }
+    }
+    catch (IOException)
+    {
+        // Fallback if file/folder info can’t be read
+        return filePath;
+    }
 }
Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml (2)

46-46: LGTM! Descriptive and user-friendly setting label.

The localization string clearly describes what the setting does.


83-84: Well-structured tooltip format strings.

The format string properly uses positional parameters that match the usage in GetMoreInfoToolTip method. The "Unknown" string provides a good fallback for unavailable data.

Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs (2)

63-63: Good refactoring to separate file and folder logic.

The conditional logic based on ResultType appropriately delegates to specialized static methods, improving code organization and maintainability.

Also applies to: 68-70, 75-77


53-53:

✅ Verification successful

Verify the constructor signature change across the codebase.

The constructor now requires a new ResultType type parameter. Ensure all instantiations of PreviewPanel have been updated to include this parameter.


🏁 Script executed:

#!/bin/bash
# Description: Find all PreviewPanel constructor calls to verify they include the new parameter
# Expected: All constructor calls should include the ResultType parameter

# Search for PreviewPanel constructor calls
rg -A 3 "new PreviewPanel\(" --type cs

Length of output: 1023


Constructor signature change verified

All instantiations of PreviewPanel now include the new ResultType parameter:

  • Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs:
    • new PreviewPanel(Settings, path, ResultType.Folder)
    • new PreviewPanel(Settings, filePath, ResultType.File)

No further updates required.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@Jack251970 Jack251970 requested a review from Copilot June 4, 2025 09:39
@Jack251970
Copy link
Member Author

@coderabbitai Review.

Copilot

This comment was marked as outdated.

Copy link
Contributor

coderabbitai bot commented Jun 4, 2025

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

@Jack251970, I'll review this PR comprehensively. This is a nice enhancement that adds detailed tooltip information for files and folders with proper user control.


🏁 Script executed:

#!/bin/bash
# Let's examine the current implementation to understand the changes better
echo "=== Examining the new localization strings ==="
cat "Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml"

echo -e "\n=== Checking the Settings.cs changes ==="
cat "Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs"

Length of output: 27977


🏁 Script executed:

#!/bin/bash
# Let's examine the core implementation changes
echo "=== Examining ResultManager.cs changes ==="
cat "Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs"

echo -e "\n=== Examining PreviewPanel.xaml.cs changes ==="
cat "Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs"

Length of output: 28021


🏁 Script executed:

#!/bin/bash
# Let's examine the UI changes
echo "=== Examining ExplorerSettings.xaml changes ==="
cat "Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml"

Length of output: 44123


Excellent work on this feature enhancement! The implementation is well-structured with good separation of concerns and proper user choice. Here's my comprehensive review:

Strengths

  1. Great Architecture: Clean separation between tooltip and preview panel logic with reusable static methods
  2. User Control: Opt-in setting respects user preference
  3. Error Handling: Proper try-catch blocks with logging and fallback to "Unknown"
  4. Localization: Consistent use of localized strings
  5. Code Reuse: Smart reuse of metadata retrieval methods between tooltip and preview panel

🔧 Areas for Improvement

1. Performance - Folder Size Calculation

The folder size calculation has potential performance issues:


🏁 Script executed:

#!/bin/bash
# Let's check if there are any existing performance optimizations or similar patterns in the codebase
echo "=== Checking for async patterns in the codebase ==="
rg -A 5 -B 5 "async|Task\." --type cs "Plugins/Flow.Launcher.Plugin.Explorer/"

echo -e "\n=== Checking for CancellationToken usage patterns ==="
rg -A 3 -B 3 "CancellationToken" --type cs "Plugins/Flow.Launcher.Plugin.Explorer/"

Length of output: 45683


Current Issues:

// ❌ Problem: Synchronous, blocks UI thread
public static string GetFolderSize(string folderPath)
{
    // This runs on UI thread and can freeze interface
    var cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(3));
    foreach (var file in directoryInfo.GetFiles("*", SearchOption.AllDirectories))
    {
        // Timeout check doesn't actually cancel file enumeration
        if (cancellationTokenSource.Token.IsCancellationRequested)
            return "Unknown";
        size += file.Length;
    }
}

Recommendations:

  1. Make Folder Size Calculation Async:
public static async Task<string> GetFolderSizeAsync(string folderPath, CancellationToken cancellationToken = default)
{
    return await Task.Run(() =>
    {
        using var timeoutCts = new CancellationTokenSource(TimeSpan.FromSeconds(3));
        using var combinedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token);
        
        try
        {
            // Use parallel enumeration for better performance
            var directoryInfo = new DirectoryInfo(folderPath);
            return directoryInfo.EnumerateFiles("*", SearchOption.AllDirectories)
                .AsParallel()
                .WithCancellation(combinedCts.Token)
                .Sum(file => file.Length);
        }
        catch (OperationCanceledException)
        {
            return -1; // Indicate timeout/cancellation
        }
    }, cancellationToken);
}
  1. Cache Expensive Operations:
private static readonly ConcurrentDictionary<string, (DateTime lastWrite, string size)> _folderSizeCache = new();

public static string GetFolderSize(string folderPath)
{
    var lastWrite = Directory.GetLastWriteTime(folderPath);
    if (_folderSizeCache.TryGetValue(folderPath, out var cached) && cached.lastWrite >= lastWrite)
        return cached.size;
        
    // Calculate and cache result
    var size = CalculateFolderSize(folderPath);
    _folderSizeCache[folderPath] = (lastWrite, size);
    return size;
}

2. Resource Management Issue

// ❌ Current: CancellationTokenSource not disposed
var cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(3));

// ✅ Should be:
using var cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(3));

3. UI/UX Considerations

The tooltip generation should be fast. Consider showing basic info immediately and updating with detailed info asynchronously:

SubTitleToolTip = Settings.DisplayMoreInformationInToolTip 
    ? $"{filePath}\nLoading detailed info..." 
    : filePath

// Then update asynchronously when detailed info is available

🎯 Specific Suggestions

  1. Add caching mechanism for expensive operations
  2. Make folder size calculation async with proper cancellation
  3. Add progress indication for long-running tooltip calculations
  4. Consider tooltip lazy loading - show basic info first, then enhance
  5. Optimize for common cases - file size is quick, folder size is expensive

📝 Minor Issues

  1. Localization: All new strings are properly localized ✅
  2. UI Layout: The checkbox addition looks good with proper grid placement ✅
  3. Settings Integration: Clean integration with existing settings pattern ✅

🔧 Performance Test Suggestion

Test the feature with:

  • Large folders (>10,000 files)
  • Network drives
  • Folders on slow storage

Ensure the UI remains responsive in all scenarios.

Overall, this is a valuable feature with solid implementation. The main concern is performance optimization for folder operations. Would you like me to help create an optimized version of the folder size calculation?

This comment has been minimized.

This comment has been minimized.

@Jack251970 Jack251970 requested a review from Copilot June 4, 2025 09:46
Copilot

This comment was marked as outdated.

@Jack251970 Jack251970 added this to the Future milestone Jun 4, 2025
@Jack251970 Jack251970 modified the milestones: Future, 1.20.1 Jun 6, 2025

This comment has been minimized.

This comment has been minimized.

@Jack251970 Jack251970 requested a review from onesounds June 6, 2025 01:36

This comment has been minimized.

This comment has been minimized.

Copy link

github-actions bot commented Jun 6, 2025

@check-spelling-bot Report

🔴 Please review

See the 📂 files view, the 📜action log, or 📝 job summary for details.

❌ Errors and Warnings Count
❌ forbidden-pattern 22
⚠️ non-alpha-in-dictionary 13

See ❌ Event descriptions for more information.

If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

@onesounds
Copy link
Contributor

Note: This is currently only shown as a tooltip in the path area. It might be better to remove the Ctrl+Enter hint and apply the tooltip to the entire area instead. Although it would be nice to have a setting for tooltip display speed, I’d prefer not to add one. It might be a good idea to adjust the tooltip speed dynamically—for example, make it faster when mouse interaction is detected. Let’s consider this for later.

@Jack251970 Jack251970 merged commit d04f493 into dev Jun 9, 2025
6 checks passed
@Jack251970 Jack251970 deleted the file_tooltip branch June 9, 2025 05:00
@Jack251970 Jack251970 modified the milestones: 1.20.1, Future Jun 10, 2025
@jjw24 jjw24 modified the milestones: Future, 1.20.1 Jun 10, 2025
@jjw24 jjw24 modified the milestones: Future, 2.0.0 Jun 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File tooltip

3 participants