Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
LostPaul committed Jan 15, 2025
2 parents fd67bfa + 8b7a2fa commit 0fe07ee
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion manifest-beta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "folder-notes",
"name": "Folder notes beta",
"version": "1.7.30-15-beta",
"version": "1.7.30-16-beta",
"minAppVersion": "0.15.0",
"description": "Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.",
"author": "Lost Paul",
Expand Down
10 changes: 3 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { getFocusedItem } from './functions/utils';
import { FOLDER_OVERVIEW_VIEW, FolderOverviewView } from './obsidian-folder-overview/src/view';
import { getFolderPathFromString } from './functions/utils';
import { registerOverviewCommands } from './obsidian-folder-overview/src/Commands';
import { updateOverviewView, updateViewDropdown } from './obsidian-folder-overview/src/main';

export default class FolderNotesPlugin extends Plugin {
observer: MutationObserver;
Expand Down Expand Up @@ -252,13 +253,8 @@ export default class FolderNotesPlugin extends Plugin {
workspace.revealLeaf(leaf);
}

async updateOverviewView() {
const { workspace } = this.app;
const leaf = workspace.getLeavesOfType(FOLDER_OVERVIEW_VIEW)[0];
if (!leaf) return;
const view = leaf.view as any as FolderOverviewView;
view.display(view.contentEl, view.yaml, this, view.defaultSettings, view.display, undefined, undefined, view.activeFile);
}
updateOverviewView = updateOverviewView
updateViewDropdown = updateViewDropdown

isEmptyFolderNoteFolder(folder: TFolder): boolean {
let attachmentFolderPath = this.app.vault.getConfig('attachmentFolderPath') as string;
Expand Down
2 changes: 1 addition & 1 deletion src/obsidian-folder-overview
15 changes: 15 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


.fn-whitespace-stop-collapsing .nav-folder-title-content {
flex-grow: 1 !important;
display: flex;
Expand Down Expand Up @@ -42,6 +44,9 @@ body:not(.disable-folder-highlight) .tree-item-self.fn-is-active {
cursor: pointer;
}

.hide {
display: none;
}

.hide-folder-note .is-folder-note {
display: none;
Expand Down Expand Up @@ -177,6 +182,16 @@ body:not(.disable-folder-highlight) .tree-item-self.fn-is-active {
font-size: 1.2rem;
}

.overview-setting-item-fv {
border-top: 1px solid var(--background-modifier-border);
padding: 0.75em 0;
align-items: center;
}

.overview-setting-item-fv .setting-item {
padding: 0;
}


.folder-overview-grid-item {
flex: 1 1 auto;
Expand Down

0 comments on commit 0fe07ee

Please sign in to comment.