Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rebornix/logseq-open-in-code
https://github.com/rebornix/logseq-open-in-code
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rebornix/logseq-open-in-code
- Owner: rebornix
- License: mit
- Created: 2022-04-23T17:16:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-16T18:56:18.000Z (12 months ago)
- Last Synced: 2024-10-06T15:11:53.205Z (about 1 month ago)
- Language: Vue
- Size: 723 KB
- Stars: 29
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Open Logseq in VS Code
This plugin offers quick access of following in VS Code
- focused blocks or pages
- configuration files
- the graph folder![demo](./demo.gif)
VS Codium is also supported.
## UsageUse the following keyboard shortcuts:
- `mod+shift+o`: Open graph
- `mod+o`: Open current page
- `mod+alt+o`: Open current blockYou 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.
- Stable : `vscode://file/`
- Insider : `vscode-insiders://file/`
- VS Codium : `vscodium://file/`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
- In an independent new window
- In the last focused window
- In the graph folder
- In the workspace (Experimental function. It only works when the file `/.code-workspace` exists. And it's only tested with the stable version)> Right now the path of the file `.code-workspace` has to be put in the graph folder. And it's highly recommended to enable automatic saving on focus change.
> ```json
>{
> "folders": [
> {
> "path": "."
> }
> ],
> "settings": {
> "files.autoSave": "onFocusChange", // recommended
> }
>}
> ```## Development
- Install dependencies with `npm install`
- Build the application using `npm run build` or `npm run watch`
- Load the plugin in the Logseq Desktop client using the `Load unpacked plugin` option.