From 25f72fa72110a8777d1bb521a3c050eee91c3cfd Mon Sep 17 00:00:00 2001 From: Pluto Date: Thu, 9 Jan 2025 17:10:59 +0530 Subject: [PATCH] fix: update virtual path before displaying in the UI --- .../NavigationAndHistory/main.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/extensionsIntegrated/NavigationAndHistory/main.js b/src/extensionsIntegrated/NavigationAndHistory/main.js index 91bd168af..8dcfd8ce7 100644 --- a/src/extensionsIntegrated/NavigationAndHistory/main.js +++ b/src/extensionsIntegrated/NavigationAndHistory/main.js @@ -311,10 +311,14 @@ define(function (require, exports, module) { } $newItem.data("path", value.file); + + // convert the virtual path to display path + var displayPath = Phoenix.app.getDisplayPath(value.file); + $newItem.data("paneId", value.paneId); $newItem.data("cursor", value.cursor); $newItem.data("file", fileEntry); - $newItem.attr("title", value.file); + $newItem.attr("title", displayPath); // this is for the tooltip if (isPaneLabelReqd && value.paneId) { $newItem.addClass(value.paneId); @@ -442,8 +446,12 @@ define(function (require, exports, module) { var $scope = $(event.target).parent(); $("#mrof-container #mrof-list > li.highlight").removeClass("highlight"); $(event.target).parent().addClass("highlight"); - $mrofContainer.find("#recent-file-path").text($scope.data("path")); - $mrofContainer.find("#recent-file-path").attr('title', ($scope.data("path"))); + + // convert the virtual path to display path + var displayPath = Phoenix.app.getDisplayPath($scope.data("path")); + $mrofContainer.find("#recent-file-path").text(displayPath); + $mrofContainer.find("#recent-file-path").attr('title', displayPath); + $currentContext = $scope; }