[0.1.7] - 2025-01-10
Fixed
- Tab completion for current directory files - Fixed bug where
treemd R<tab>wouldn't complete toREADME.mdin the current directory. Path::parent() returns empty string for simple filenames, which is now normalized to "." for proper completion matching.
Added
- Filename in title bar - Title bar now displays the filename being viewed: "treemd - README.md - 15 headings"
- Current heading in content pane - Content pane header now shows the selected heading name instead of the generic "Content" label, providing better context while reading
Changed
- App struct enhancement - Added
filenamefield to track the source file for display purposes - Content pane title logic - Title dynamically updates based on selected heading, falling back to "Content" when none selected
Technical
- Normalized empty parent paths in file completer to fix
Path::new("R").parent()returningSome("")instead ofSome(".") - Extracted filename from PathBuf when launching TUI mode using
file_name()andto_str()
Full Changelog: v0.1.6...v0.1.7