Skip to content

Commit

Permalink
Add support for Helix editor (#433)
Browse files Browse the repository at this point in the history
Adds the line number when piping into [Helix](https://github.com/helix-editor/helix)
  • Loading branch information
TheRealLorenz authored Sep 1, 2023
1 parent cc032b2 commit 018d010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pathpicker/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def join_files_into_command(files_and_line_numbers: List[Tuple[str, int]]) -> st
and line_num != 0
):
cmd += f" +{line_num} '{file_path}'"
elif editor_without_args in ["subl", "sublime", "atom"] and line_num != 0:
elif editor_without_args in ["subl", "sublime", "atom", "hx"] and line_num != 0:
cmd += f" '{file_path}:{line_num}'"
elif line_num != 0 and os.environ.get("FPP_LINENUM_SEP"):
cmd += f" '{file_path}{os.environ.get('FPP_LINENUM_SEP')}{line_num}'"
Expand Down

0 comments on commit 018d010

Please sign in to comment.