Giter VIP home page Giter VIP logo

obsidian-open-with's Introduction

Obsidian Open with GitHub tag (Latest by date) GitHub all releases

This Plugin lets you open your Notes in other Software via Commands. You can use almost every Program to open your Notes.

How to install

  1. Go to Community Plugins in your Obsidian Settings and disable Safe Mode
  2. Click on Browse and search for „Open with“
  3. Click install
  4. Toggle the Plugin on in the Community Plugins Tab

Support me

If you find this Plugin helpful, consider supporting me:

obsidian-open-with's People

Contributors

phibr0 avatar unbleaklessness avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

obsidian-open-with's Issues

how to run with Obsidian flatpak

Does the flatpak version need special permissions to trigger the plugin action? It doesn't want to work, I tried to give explicit permissions already.

Working directory Issues

Platform:
Ubuntu 21.10 LTS 64bit
Obsidian 0.12.19

The Obsidian application needs to launched with the working directory set to root '/' for this plugin to work correctly because it attempts to open external programs with a root relative path (i.e. no initial /). If you launch from your home directory it will attempt to open with with a root relative link and thus yield an invalid path e.g. /home/matt/home/matt/notes/interesting.md

Current workaround compatible with most DE: one can specify the working directory for the menu entry

➜  ~ more .local/share/applications/menulibre-notes.desktop 
[Desktop Entry]
Version=1.1
Type=Application
Name=Notes
Comment=obsidian notes
Icon=applications-other
Exec=/home/matt/Dropbox/tools/Obsidian
Path=/
Actions=
Categories=Office;
StartupNotify=true
➜  ~ 

Other vaults do not take effect

I have multiple vaults. Setting up in one of the vaults and opening with Emeditor is normal, but there is no response in the other vaults.
Note: I copied the configuration file directly to other vaults, and you can see that Emeditor has been configured in the setting interface.
image

Thank you.

Copy absolute Path of File to clipboard do not start with "/"

Environment: macOS, Obsidian v0.12.12

Can't work well in macOS, I think it may be caused by a problem of getting file path. (Have Verified)

Clipboard result: Users/ludwigws/OneDrive/MyNote/202109010915.md

        getAbsolutePathOfFile(file) {
            //@ts-ignore
            const path = obsidian.normalizePath(`${this.app.vault.adapter.basePath}/${file.path}`);
           // debug: this.app.vault.adapter.basePath = "/Users/ludwigws/OneDrive/MyNote", file.path = "202109010933 Obsidian open with app.md"
          // path = ""Users/ludwigws/OneDrive/MyNote/202109010933 Obsidian open with app.md"


          // I fixed it temporarily by adding this
           if (!path.startsWith("/")) {
	       path = "/" + path;
           }
            if (obsidian.Platform.isDesktopApp && navigator.platform === "Win32") {
                return path.replace(/\//g, "\\");
            }
            return path;
        }

Extra empty argument is passed

If I'm trying to launch /Applications/MacVim.app/Contents/MacOS/MacVim, what gets invoked is:

open -a "/Applications/MacVim.app/Contents/MacOS/MacVim" "/Users/huyz/Documents/Vaults/Vault/Obsidian playground.md" --args ""

The extra blank argument "" makes an empty window be opened too.

So I guess this is a bug and blank arguments should not be passed at all.

issue with whitespace not beeing backslashed

thanks for this tool,
small issue:

assuming linux ubuntu 22 machine,
assuming I want to open an image with program eog
assuming the image is named awesome image.png

The command sent will be:
eog <path>/awesome image.png

which will fail.
the program should \ the whitespace
the program should eog <path>/awesome\ image.png

How to make it work on macos

I try to use your plugin on macos. I didn't understand how to use it. What should I write in the commnad/path section to make it work?

Not working on macOS?

Can someone help me try to get this to work on macOS.
I want to be able to edit some docs with MacVim.

So I have the path set as /opt/homebrew/bin/mvim but nothing happens and there are no errors in the Web console either.

Specifying to open with typora often fails

Very useful plug-in.
but,Specifying to open with typora often fails (only the Typora program can be opened, but the corresponding markdown file cannot be opened at the same time)
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.