Skip to content

Commit a121475

Browse files
authored
Only sort notes (#306)
2 parents a882708 + 1153408 commit a121475

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

basalt/CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Added
66

7-
- [342fbd6](https://github.com/erikjuhani/basalt/commit/342fbd6f9bd91e595aba95c7c0dd050873e5e205) Add input modal with note and directory rename functionality
7+
- [342fbd6](https://github.com/erikjuhani/basalt/commit/342fbd6f9bd91e595aba95c7c0dd050873e5e205) Add input modal with note and directory rename functionality by @erikjuhani
88

99
> > [!CAUTION]
1010
> > BEWARE! This rename implementation does not cover updating the
@@ -22,6 +22,24 @@
2222
> operation leverages the `rename_note` and `rename_dir` functions added
2323
> in affec53 and a347325, the vault is 'reloaded' after rename.
2424
25+
### Dependencies
26+
27+
- [0b7e9ab](https://github.com/erikjuhani/basalt/commit/0b7e9ab2ac648a982de13c395b4d33a23a85bcd3) Update Rust crate ratatui to 0.30.0 by @renovate-updater[bot]
28+
29+
> | datasource | package | from | to |
30+
> | ---------- | ------- | ------ | ------ |
31+
> | crate | ratatui | 0.29.0 | 0.30.0 |
32+
33+
### Fixed
34+
35+
- [5f9d342](https://github.com/erikjuhani/basalt/commit/5f9d34224a498ae3d7d010adf887fdcdb07317c9) Fix sorting to match Obsidian sorting
36+
37+
> Fixes #69. Previously, when user sorted the vault items the folders
38+
> would also be sorted according to the same rules as notes, however, this
39+
> is not how obsidian sorts. Obsidian sorts only files by default, not
40+
> directories. Directories are initially sorted A-z, and then kept in that
41+
> order when sorting files.
42+
2543
## [0.11.2](https://github.com/erikjuhani/basalt/releases/tag/basalt/0.11.2) (Dec, 21 2025)
2644

2745
### Changed

basalt/src/explorer/state.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ fn sort_items_by(sort: Sort) -> impl Fn(&Item, &Item) -> Ordering {
103103
move |a, b| match (a.is_dir(), b.is_dir()) {
104104
(true, false) => Ordering::Less,
105105
(false, true) => Ordering::Greater,
106+
(true, true) => Ordering::Equal,
106107
_ => {
107108
let a = a.name().to_lowercase();
108109
let b = b.name().to_lowercase();

0 commit comments

Comments
 (0)