mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 04:32:05 +00:00
Add support for editing files in sublime text and zed at specified line number
Fixes #10224
This commit is contained in:
parent
dff6e427e5
commit
6b896e18ad
2 changed files with 4 additions and 0 deletions
|
|
@ -212,6 +212,8 @@ Detailed list of changes
|
|||
|
||||
- choose-files kitten: Add a ``--mode=all`` to select either an existing file or directory (:iss:`10208`)
|
||||
|
||||
- Add support for editing files in sublime text and zed at specified line number (:pull:`10224`)
|
||||
|
||||
|
||||
0.47.4 [2026-06-15]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -588,6 +588,8 @@ def get_editor(opts: Options | None = None, path_to_edit: str = '', line_number:
|
|||
if eq in ('code', 'code.exe'):
|
||||
path_to_edit += f':{line_number}'
|
||||
ans.append('--goto')
|
||||
elif eq in ('subl', 'subl.exe', 'sublime_text', 'sublime_text.exe', 'zed', 'zed.exe', 'zeditor'):
|
||||
path_to_edit += f':{line_number}'
|
||||
else:
|
||||
ans.append(f'+{line_number}')
|
||||
ans.append(path_to_edit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue