Spaces

by Peter Jamrozinski
5
4
3
2
1
Score: 30/100

Description

The Spaces plugin turns the file explorer into switchable views called spaces, so the same vault can appear as a hand picked collection or as the live contents of one pinned folder. It does not move, rename or delete files. Curated spaces can include notes and folders with dimmed parent scaffolding, while folder pinned spaces surface one folder's children at the top level and send new notes or folders to that real path. It can remember tabs and sidebars per space, show out of space notes as dimmed visitors and store custom row ordering for both items and space icons. When Workspaces is enabled, explorer filtering stays active but tab restoration steps aside and the plugin remains desktop only.

Reviews

No reviews yet.

Stats

15
stars
193
downloads
0
forks
4
days
4
days
4
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
2
total issues
2
open issues
0
closed issues
10
commits

README file from

Github

TL;DR

  • Switch between curated views of your vault's folders and notes
  • Reorder notes and folders by dragging
  • Lightweight: no runtime dependencies, no network requests

Spaces is a plugin for Obsidian that supercharges a vault by letting you gather contextually relevant content into a space. A space is similar in spirit to a Notion teamspace: a view of your vault scoped to one piece of work, with its own contents and its own tabs. It changes what and how you see your vault, not what your vault contains.

Spaces are a lens, not a reorganisation. A note or folder lives at one real path, and can belong to zero or more spaces. Nothing here renames, moves or deletes anything in your vault.

All A curated space A folder pinned space

Same vault, same notes, same paths. Only what the explorer shows changes. All is Obsidian's own tree, untouched. A curated space contains one or more arbitrary item(s) you picked. A folder pinned space contains the children of a chosen folder: creating a new note or folder here creates it under that folder's real path.

Navigate spaces by either:

  • Clicking a space icon in the space strip
  • Clicking your space's icon at the top of the space view
  • Using the command palette

Two kinds of space

Curated spaces hold notes and folders you pick by hand. Add a folder and everything inside it comes along; the parent folders needed to reach your files appear dimmed, as scaffolding rather than members.

Folder pinned spaces are a live window onto a single folder. Its contents appear at the top level of the explorer, the folder itself is hidden, and anything you later add to that folder shows up without you doing anything. New notes created while you are in the space land in that folder.

A space's type is fixed when you create it: a curated space can never become a folder pinned space, or the reverse.

How Spaces differs from Workspaces

Obsidian's core Workspaces plugin saves and restores layouts (which panes, tabs and sidebars are open) and you save and load them by name. It does not change what the file explorer shows.

Spaces works the other way round: it filters the explorer, so picking a space changes which notes and folders exist on screen. Tabs follow as a consequence of switching rather than something you save by hand.

The two overlap on tabs, so Spaces defers. If the core Workspaces plugin is enabled, Spaces stops restoring tabs, says so once, and leaves layouts to Workspaces. Filtering carries on as normal, and the setting you chose is left exactly as you set it.

Additional features

Remembers your tabs, if you ask it to. Turn on Restore tabs when switching spaces and each space keeps its own tab layout and sidebar state. It is off by default, so switching moves the file tree and leaves your panes where they are.

Lets you open anything. Open a note that is not in the current space and it appears anyway, dimmed and italic, as a visitor. Links never lead to nowhere. Visitors last as long as you keep them open in a tab.

Reorder as you see fit. Drag rows in the tree to arrange them, remembered separately for each space. Drag the icons in the switcher strip to reorder your spaces.

Requirements

  • Obsidian 1.13.0 or later
  • Desktop only. The manifest declares isDesktopOnly: true, so Obsidian does not offer the plugin on mobile

Mobile support is on the roadmap. Two things stand in the way today: reordering rides Obsidian's own HTML5 drag events, which never fire from a touch gesture, and the filtering works against the desktop file explorer's DOM, which mobile lays out differently. Both are solvable, neither is verified on a phone yet, and the manifest stays honest about that until they are.

Installing

Build Spaces from a local copy of this repository:

npm install
npm run build

Then copy main.js, manifest.json and styles.css into <vault>/.obsidian/plugins/spaces/, creating that folder if needed. Restart Obsidian or reload the plugin, then enable Spaces under Settings → Community plugins.

If your vault uses a custom config folder, substitute it for .obsidian.

main.js is build output and is not tracked in the repository, so rebuild after pulling or switching branches; otherwise Obsidian keeps loading the previous build.

Quick start

  1. Enable the plugin. The switcher strip appears along the bottom of the file explorer, with All at the left.
  2. Click + at the right of the strip, or run the Create space command. The explorer pane turns into a creation form.
  3. Type a name. Optionally click the dashed square to the left of the name to choose an icon, and Choose icon colour to set its colour.
  4. Choose what goes in it:
    • Curated opens a searchable tree of your vault. Click any notes and folders to include them.
    • Folder pinned shows folders only; pick exactly one to pin the space to.
    • Both are optional. A space with just a name is a valid empty curated space.
  5. Click Create space. Spaces switches you into it, and the file tree narrows to match.
1. Name it 2. Curate it 3. Pin it to a folder

Click All to leave the space and see the whole vault again.

Adding and removing things later

Right-click a row in the file tree:

  • In All, Add to space offers each of your spaces.
  • Inside a space, Remove from space removes a member. A row that is in the space because you added its parent folder shows a disabled entry naming the folder it came from. Remove the folder, or use Stop showing here to dismiss a visitor.
  • On a folder in All, Create folder pinned space builds a space pinned to it in one step.

Right-click a space's icon in the switcher strip for Rename space…, Change space icon…, Change space colour…, and Restore saved ordering.

A row in the file tree A space's icon in the strip

Only spaces that can take the row are offered: a folder pinned space is a window onto its own folder, so it never appears in Add to space.

Commands

All available from the command palette, and bindable to hotkeys.

Command What it does
Switch to All Leaves the active space and shows the whole vault
Next space / Previous space Cycles through your spaces
Create space Opens the creation form in the explorer pane
New note in active space Creates a note, in the pinned folder if the space has one
New folder in active space Creates a folder, in the pinned folder if the space has one
Add active file to space Adds the file you are editing to a space you choose
Pause or resume space filtering Releases the explorer entirely, showing Obsidian's own unfiltered tree
Restore saved ordering Returns to your own row order after switching to one of Obsidian's sort modes

Settings

Settings → Spaces has two pages. Preferences holds the toggles below; Spaces lists your spaces, where you can rename one, review its members, or delete it. Every setting here is findable from Obsidian's own settings search.

Setting Default What it controls
Show the space name above the file tree On A header row naming the active space
Mark folder pinned spaces with a pin Off Adds a pin to that header for a folder pinned space; hover it for the folder
All stays at the left of the space strip Off Keeps All in place while the other icons scroll
Assign a colour to new spaces On New spaces take the next palette colour. Off, they start neutral and you pick
Show files you open that are not in this space On Whether visitors appear. Off, a non-member note you open stays hidden
Ignored paths Empty One glob per line, hidden from every space. * matches within a path segment, ** across segments. A file you added explicitly is still shown
Allow reordering of space items On Whether dragging rows rearranges them inside a space
Allow reordering outside spaces On The same, for All
Restore tabs when switching spaces Off Whether each space restores its own tabs. On, switching also rearranges your panes; off changes nothing about which rows are visible

Your files and your data

Spaces never creates, renames, moves or deletes notes as part of managing a space. The two creation commands above make files because you asked them to; everything else only changes what the explorer shows.

Spaces, settings and saved row orders live in data.json inside the plugin's own folder. Tab layouts and the selected space are kept in Obsidian's local storage for the vault.

The plugin makes no network requests. A test (tests/noNetwork.test.ts) scans the source for fetch, requestUrl and socket calls and asserts there are none, and that the plugin ships no runtime dependencies.

Limitations

  • One active space per window, applied to every file-explorer leaf.
  • A space's kind is fixed at creation: a curated space cannot become folder pinned, or the reverse.
  • Dragging to reorder rows or spaces needs a pointer; both gestures stand down on touch.
  • The item picker in the creation form draws at most 200 rows at a time and tells you how many more matched. Keep typing to narrow it.

Development

npm install
npx tsc --noEmit    # strict type check
npx vitest run      # the test suite
npm run build       # type check, then bundle to main.js

Support

If Spaces earns a place in your vault: Ko-fi for a one-off, or GitHub Sponsors.

License

MIT. See LICENSE.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Atomizer
2 years ago by Zac Bagley
An AI-Driven Obsidian plugin designed to turn lengthy text into insightful atomic notes. Perfect for turning source notes into ideas in a Zettelkasten workflow.
Auto Archive
3 years ago by Shane Burke
Auto Archive plugin for Obsidian
Automatic Linker
2 years ago by Kodai Nakamura
Automatic Table Of Contents
3 years ago by Johan Satgé
💠 An Obsidian plugin to create a table of contents in a note, that updates itself when the note changes
Backgroundset
2 years ago by daonali
similar as vscode background
Browser Interface
2 years ago by Jason Lieb
An obsidian plugin that pairs with a chrome extension to manage your tabs in obsidian.
Cards View
3 years ago by Maud Royer
Plugin for Obsidian.md. Displays a card view of your notes.
Carry-Forward
5 years ago by Jacob Levernier
An Obsidian Notes plugin for generating and copying block IDs, and copying lines with a link to the copied line
Clipper Catalog
2 years ago by Greg K.
A catalog view that provides a powerful interface for all your clipped web articles and content. Easily organize, search, and manage your web clippings within your vault.
Clone Vault
2 years ago by Sebastian Baroni
Clones the current Obsidian vault by copying settings and folder structure without note contents.
Collapse All
5 years ago by Nathonius
Contexts
2 months ago by ba2slk
Obsidian plugin to save and load context easily.
Current Folder Notes
2 years ago by Pamela Wang
Shows notes in the current folder, useful for writing novels
Daily Note Collector
2 years ago by Adar Butel
An Obsidian plugin that adds links to new notes to your daily note.
Dataview Autocompletion
2 years ago by Daniel Bauer
Discrete
a year ago by shkarlsson
Enhanced tables
3 years ago by pistacchio
A plugin for Obsidian to add advanced controls (like sorting and filtering) to standard markup tables
Explorer Hider
2 years ago by Mara-Li
Hide folder & files from the explorer using a plugin and a bit of CSS :>
File Explorer Markdown Titles
5 years ago by Dylan Elliott
Obsidian Plugin that adds the the markdown title within your notes to the file explorer
File Explorer Reload
4 months ago by mnaoumov
Obsidian Plugin that reloads the file explorer files list
File Explorer++
4 months ago by kelszo
A plugin for https://obsidian.md, which enables the ability to hide and pin specific files and folders in the file explorer by applying custom filters.
Flexplorer
3 months ago by kh4f
🗃️ Obsidian File Explorer Enhancer
Footlinks
6 years ago by Daha
Obsidian plugin that extracts urls from the main text to footer, offering a better reading/editing experience.
Frontmatter Alias Display
3 years ago by muhammadv-i
A plugin for Obsidian.md to show front-matter aliases as display names in the file menu.
Header Adjuster
2 years ago by Valentin Pelletier
Header level Reformat Plugin for Obsidian
Header Counter
2 years ago by Nancy Lee
Header navigation
2 years ago by readwithai
An obsidian plugin to navigate around and toggle folding on headers
Heading View
a month ago by 菅原ユリア
Headings in Explorer
2 years ago by Patrick Chiang
This Obsidian plugin makes headings first class concepts in the file explorer and consolidates navigation to a single panel.
Hide Folders
4 months ago by jonasdoesthings
Toggle the visibility of folders in the Obsidian.MD file navigator based on name-patterns
Hide Index Files
a year ago by d7sd6u
Hides folder notes from the file explorer
Inbox Organiser
2 years ago by Jamie Hurst
Obsidian plugin to capture any new notes into an inbox and periodically prompt to organise these into other folders within the vault.
Influx
4 years ago by Jens M Gleditsch
An alternative backlinks plugin, which displays relevant and formatted excerpts from notes with linked mentions, based on the position of mentions in the notes' hierarchical structure (bullet level indentation).
Keyword Highlighter
3 years ago by Marcel Goldammer
Automatically highlight specified keywords within your Obsidian notes for enhanced visibility and quick reference.
koncham workspace
5 years ago by mano
obsidian workspace enhancement [not maintained]
Line Arrange
2 years ago by Chitwan Singh
Obsidian Plugin For Arranging Lines.
Link indexer
6 years ago by Yuliya Bagriy
Link Maintainer
2 years ago by wenlzhang
An Obsidian plugin that helps you maintain note links when splitting or reorganizing notes.
Link Range
3 years ago by Ryan Mellmer
Add ranged link support to Obsidian
Mark Open Files
a year ago by Michael Schrauzer
Adds a marker to all the File Explorer items that are currently open in the Obsidian workspace.
Maximise Active Pane
6 years ago by death_au
A plugin for [Obsidian](https://obsidian.md) which simply fills the workspace with the active pane.
Multiple Daily Notes
2 years ago by Vab Kapoor
Obsidian plugin for adding multiple daily notes, with some extra configurations too.
Multiple Notes Outline
3 years ago by iiz
Mxmind Mindmap
3 years ago by mxmind
mxmind for obsidian plugin
New Note New Window
4 years ago by Pedro Reyes
Plugin for opening new notes in a floating window in Obsidian (https://obsidian.md)
Note 2 Tag Generator
2 years ago by Augustin
Note ID
2 years ago by Dominik Mayer
Displays notes by their ID, enabling structured sequences for manuscripts or a Zettelkasten ("Folgezettel")
Novel Word Count
4 years ago by Isaac Lyman
Obsidian plugin. Displays a word count or other statistic for each file, folder and vault in the File Explorer pane.
oblogger
3 years ago by loftTech
tag explorer and frontmatter logger plugin for obsidian
obsidian floating toc
4 years ago by curtgrimes modified by Cuman
Open Editors
2 years ago by 4Source
This is a plugin for Obsidian (https://obsidian.md). Adds a view which shows the opened groups and the tabs inside them. Allow to close groups or all tabs at once.
Open Tab Settings
a year ago by jesse-r-s-hines
Obsidian plugin that adds options to customize how tabs are opened, including open in new tab by default, preventing duplicate tabs, and more
Page Heading From Links
6 years ago by Mark Beattie
Obsidian plugin to populate page headings
Pending notes
4 years ago by Ulises Santana
Obsidian plugin for searching links without notes in your vault.
Prominent Bookmarked Files
5 years ago by Jeremy Valentine
Prominently display starred files in Obsidian.md
Quick Switcher++
4 months ago by darlal
Enhanced Quick Switcher plugin for Obsidian.md
Rainbow Folders Fixer
a year ago by Dee
Stop rainbow folders from changing colors as you scroll through the File Explorer in Obsidian.md
Rapid Notes
4 years ago by valteriomon
Reveal Active File Button
5 years ago by Clare Macrae
Obsidian plugin to add a button to the top of the Obsidian File Explorer, to reveal the active file.
Reveal Folded
a year ago by d7sd6u
Adds a command that reveals current file while collapsing every other tree item
Scrolls To Nav Top
a year ago by mario
Simply scrolls to nav top
Sidebar Keyboard Navigation
2 months ago by denvolok
Obsidian plugin to smoothly navigate File Explorer using keyboard only.
Sift
12 days ago by disasta-g
Search your notes with substring matching, operators, path and date filters, and ranked results in a large overlay.
Simple Focus
2 years ago by Lin Qing
Allows you to focus on a specific file or folder. 让你可以专注于一个文件或文件夹
Smart Link Alias
2 years ago by Victor Perez-Cano
Spreadsheets
3 years ago by Divam Gupta
Subdivider
3 years ago by Tricster
Subdivider converts your notes into nested folders, automatically creating separate files for each subheading.
Tab Group Arrangement
2 years ago by situ2001
Arrange the tab groups of Obsidian in a more flexible way
Tab Navigator
2 years ago by o02c
obsidian-tab-switcher
Tab Rotator
3 years ago by Steven Jin
Obsidian Rotate opened tabs with a specified time interval
Tag Summary
4 years ago by J.D Gauchat
Template Folder
a year ago by LucasOe
Obsidian plugin to move notes to a folder when applying a template.
Title Serial Number
5 years ago by Domenic
This is an obsidian plugin, and it adds serial numbers to your markdown title.
Today Alias
a month ago by tanoshia
Plugin for Obsidian md editor. This hides a date prefix of any file name (in browser and tabs).
Tree Modal
4 months ago by krannich
Obsidian plugin: open files from the file explorer in a modal preview
Vertical Tabs
3 months ago by oxdc
An Obsidian plugin that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.
Viewer ftags
a year ago by d7sd6u
Add ftags and ftag-children as chips on top of views
Window Collapse
5 years ago by Guilherme Quental
WonderBox
2 years ago by Christian HUMBERT
Workbench
6 years ago by ryanjamurphy
A plugin to help you collect working materials.
Workspaces Plus
5 years ago by NothingIsLost
Quickly switch and manage Obsidian workspaces
Zen Space
a year ago by Aditya Amatya
An enhanced file explorer showing relevant only relevant files for focused work.