Code Monkey home page Code Monkey logo

obsidian-open-in-other-editor's Introduction

obsidian-open-in-other-editor

Open the current active file in gVim, VScode, or nvim-qt.

How To Use

  1. Ensure that you can use the code, gvim, or nvim-qt commands in the terminal.
  2. Ctrl + p to open the command palette, then search for open in other

For macOS Users

  1. Put the absolute path to editor terminal command (code | gvim†) in Open in other editor settings tab. † Gvim functionality may be a work in progress. Functionality on non-darwin(mac) machines may also be a work in progress.

(Powered by @mariomui)

obsidian-open-in-other-editor's People

Contributors

yekingyan avatar mariomui avatar

Stargazers

a13ph avatar  avatar Min-Ki Park avatar Neall De Waal avatar  avatar William avatar David Lee avatar  avatar Koizumi Maguro avatar Brian Anderson avatar Espen Ødegaard avatar vancaem avatar  avatar Mark Kelly-Smith avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

obsidian-open-in-other-editor's Issues

Filepath issue on Linux

Unfortunately, the file path that is set isn't compatible with Linux (see picture below). It should be cd /home/.. instead of cd home/..
I'm pretty sure there is a method in the Obsidian API that handles this, but I can't find it just now (I'll update the issue later if I can).

image

does not work for me in Windows 11 with space in path to the file which I want to edit

  • gvim is running fine from command line prompt
  • calling "open in other editor" for gvim leads to the following error message in the console
run cmd err: Error: Command failed: cd /d C:/Users/holst/Insync/[email protected]/Google%20Drive/obsidian_uh && gvim ./"01 Arbeit/02 📚 Produkte/xSuite Interface 5/Interface 5 als Dienst einrichten.md"
Das System kann den angegebenen Pfad nicht finden.
, , Das System kann den angegebenen Pfad nicht finden.

eval @ plugin:obsidian-open-in-other-editor:39
exithandler @ node:child_process:413
emit @ node:events:390
maybeClose @ node:internal/child_process:1064
ChildProcess._handle.onexit @ node:internal/child_process:301

"Das System kann den angebenen Pfad nicht finden" is german for "The system cannot find the specified path"

Running it manually in the command prompt from the vaults starting directory works fine.

image

Looks like the "...%20..." in the "cd /d ..." part is causing the problem. When using a space instead of "%20" it works fine.

Opening an empty link for me

For VSCode it works fine but for gVim it ommits my Vault name in the path, so opening an empty (new note). Very starnge.

Thank you , I looking for such an plugin for a while.

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.