From 69ce73e8106d005442122e3fe5701c08d88d3bf8 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Sun, 15 Oct 2023 16:41:50 -0700 Subject: [PATCH] Revert "fix: shorten path when opening files" (#197) This reverts commit 6cbc8d725d3964cb08d679774db67d41fa002647. --- lua/oil/init.lua | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lua/oil/init.lua b/lua/oil/init.lua index ceb6cf7..4f80699 100644 --- a/lua/oil/init.lua +++ b/lua/oil/init.lua @@ -569,11 +569,6 @@ M.select = function(opts, callback) keepalt = true, emsg_silent = true, } - -- If we're editing a file on disk, shorten the path prior to :edit so the - -- display name will show up shortened - if adapter.name == "files" and not util.parse_url(normalized_url) then - normalized_url = require("oil.fs").shorten_path(normalized_url) - end local filename = util.escape_filename(normalized_url) -- If we're previewing a file that hasn't been opened yet, make sure it gets deleted after we