rebornix / logseq-open-in-code

MIT License
28 stars 5 forks source link

Open Logseq in VS Code

This plugin offers quick access of following in VS Code

demo

VS Codium is also supported.

Usage

Use the following keyboard shortcuts:

You can also use the command palette to execute these commands.

Note: Logseq's ctrl+d ctrl+a shortcut opens the current page in the default app.

Options

Editor Options

Specify the version of VS Code (or, URL scheme) you're using.

Though not planed, this list can potentially be extended to other editors that support file URLs.

Window options

By default, a new windows will be opened. But sometimes it's preferable to avoid reopening a new windows for each file. So several options are provided.

Choose where to open the specified file

Right now the path of the file <graph_name>.code-workspace has to be put in the graph folder. And it's highly recommended to enable automatic saving on focus change.

{
  "folders": [
      {
          "path": "."
      }
  ],
  "settings": {
      "files.autoSave": "onFocusChange", // recommended
  }
}

Development