Skip to content

question: DIFFNAV_EDITOR is not running in Windows #138

@AlbertoVPersonal

Description

@AlbertoVPersonal

Description

When I'm checking a diff, I cannot open the editor to see the selected file.

Steps to reproduce

  1. Set DIFFNAV_EDITOR environment variable with value zed
  2. Open a diff with "diffnav" as pager
  3. Select a file
  4. Click o

Expected behaviour

The file should be opened using the defined editor.

Environment

  • Windows 11 Pro x64
  • Command line: DOS or Powershell
  • diffnav version v0.10.0

Additional context

echo %DIFFNAV_EDITOR%
# response
zed

I use diffnav from gh dash but if I do it manually the result is the same.

gh pr diff https://github.com/<my_organization>/icon/pull/664 | diffnav

It does not work under these test conditions:

  • Using PowerShell.
  • Setting the editor to code.
  • Changing the user variable to a system variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions