Skip to content

FileManager Bug Fixes#113

Merged
gfxholo merged 4 commits intogfxholo:mainfrom
mxberner:main
Jun 15, 2025
Merged

FileManager Bug Fixes#113
gfxholo merged 4 commits intogfxholo:mainfrom
mxberner:main

Conversation

@mxberner
Copy link
Copy Markdown
Contributor

@mxberner mxberner commented Apr 24, 2025

The two main bugs addressed are both within the file manager.

  1. Icon for open folder does not revert to closed folder when folder is closed #94
    This version overrides the optimizer for specifically only the folder being collapsed, updating the switch between open and closed states.

  2. Align files with folders when using arrows in file/folder view #112
    This version fixes the alignment issues present when "Minimal Folder Icons" is disabled. The new alignment is consistent with vanilla Obsidian.

Known Issues

  • Only when "Minimal Folder Icons" is enabled, the absence of a icon for an individual file has a slight alignment issue. That is, the text/filename isn't being shifted leftward to the proper location when that file has no icon assigned.

Fixed:
1. Updating folder itself on collapse
2. Spacing of files when MinimumFolderIcons is false
@gfxholo
Copy link
Copy Markdown
Owner

gfxholo commented May 5, 2025

Thanks for your hard work on this! Your code looks nicely done at a glance, and I'll be testing this soon to check how it works visually. Stay tuned. ✨

kotaindah55 added a commit to kotaindah55/iconic that referenced this pull request May 17, 2025
@gfxholo
Copy link
Copy Markdown
Owner

gfxholo commented Jun 11, 2025

Finished testing! This PR resolves both issues you've linked, and you've tied the indentation to minimal mode really smoothly. The sudden icon shift might surprise people who've just installed the plugin, so I'll probably set minimalFolderIcons: true as the new default after this.

I only need you to tweak a few comments, since reading this function does take some brainpower:

  • Line 108 Update the deleted comment to // Refresh when folder is expanded/collapsed
  • Line 112 Add a short comment to summarize the whole if-block (use sentence case), and remove the 3 vertical-aligned comments
  • Line 134 Add a comment like // Ensure icon is positioned before filename
  • Line 139 Reinsert the space between if (file.items)

Update the branch any way you like, and I'll merge it as one commit. 🙏

@mxberner
Copy link
Copy Markdown
Contributor Author

Should be good to go.

@gfxholo gfxholo self-assigned this Jun 15, 2025
@gfxholo gfxholo added the bug Something isn't working label Jun 15, 2025
@gfxholo gfxholo added this to the 1.1.2 milestone Jun 15, 2025
@gfxholo gfxholo merged commit c721fcb into gfxholo:main Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants