Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

how to get the name of active workspace?#773

Unanswered
azinsharaf asked this question inQ&A
Discussion options

i want to show the active workspace name in status bar. the function below doesn't return anything. any idea how i can fix it?

-- Function to get the name of the active workspacelocal function get_active_workspace_name()    -- Get the current active workspace using obsidian.nvim    local workspace = require('obsidian').workspace()    -- Check if a workspace is active and return its name, or return a fallback string    return workspace and workspace.name or "No Active Workspace"end
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@azinsharaf

[8]ページ先頭

©2009-2025 Movatter.jp