the error is gone and moving seems to work, but now after moving the main view displays no entries, even though it shows that we're in the root folder according to the breadcrumbs. the subfolders of the root still show up in the left sidebar though, and refreshing shows them listed correctly.
I'll fix the issue where the main view doesn't display entries after moving files, even though the sidebar shows the correct structure.
I've fixed the issue where the main view doesn't display entries after moving files. The problem was related to how the file system view was being refreshed after move operations. Here are the changes I made:
Improved refresh logic: I've updated both handleDrop and handleBreadcrumbDrop functions to use a more robust refresh strategy that:
loadDirectory method to ensure filesystem operations complete before returning results. This helps prevent race conditions where the UI might update before the filesystem has fully processed changes.These changes ensure that after moving files or folders:
The root cause was likely a timing issue where the UI was being updated before the filesystem operations had fully completed, or the current directory wasn't being properly refreshed after move operations.
I'll add a button to edit files as text when they're less than 2MB and the preview is not available.
I've added the "Edit as Text" button for files that don't have a preview available. Here's what the new feature does:
When clicked, it attempts to:
This gives users the flexibility to attempt viewing and editing files that might be text-based but weren't automatically detected as such, like configuration files with unusual extensions or custom file formats.