Skip to content

Commit

Permalink
doc(hop): explain the temporary fix for wslview
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom authored and vhyrro committed Nov 13, 2023
1 parent c3b9653 commit 81ddcfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/neorg/modules/core/esupports/hop/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ module.public = {
o.command = "open"
elseif config.os_info == "wsl2" then
o.command = "wslview"
-- The file uri should be decoded when being transformed to a unix path.
-- The decoding step is temporarily missing from wslview (https://github.com/wslutilities/wslu/issues/295),
-- so we work around the problem by doing the transformation before invoking wslview.
o.args[1] = vim.uri_to_fname(link_location)
elseif config.os_info == "wsl" then
o.command = "explorer.exe"
Expand Down

0 comments on commit 81ddcfe

Please sign in to comment.