Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sindresorhus/open-editor
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.0
Choose a base ref
...
head repository: sindresorhus/open-editor
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.1.0
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Dec 22, 2024

  1. Add support for Zed (#22)

    pateketrueke authored Dec 22, 2024
    Copy the full SHA
    a7fcc14 View commit details
  2. 5.1.0

    sindresorhus committed Dec 22, 2024
    Copy the full SHA
    d294ee3 View commit details
Showing with 3 additions and 2 deletions.
  1. +1 −1 index.js
  2. +1 −1 package.json
  3. +1 −0 readme.md
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ export function getEditorInfo(files, options = {}) {
for (const file of files) {
const parsed = parseLineColumnPath(file);

if (['sublime', 'atom', 'vscode', 'vscodium'].includes(editor.id)) {
if (['sublime', 'atom', 'zed', 'vscode', 'vscodium'].includes(editor.id)) {
editorArguments.push(stringifyLineColumnPath(parsed));

if (options.wait) {
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "open-editor",
"version": "5.0.0",
"version": "5.1.0",
"description": "Open files in your editor at a specific line and column",
"license": "MIT",
"repository": "sindresorhus/open-editor",
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ Supports any editor, but only the following editors will open at a specific line

- Sublime Text
- Atom
- Zed
- Visual Studio Code
- VSCodium
- WebStorm*