improve display of relative path to file
When in a subdirectory, and the file is too, it used to display eg ../subdir/thefile and now will display thefile.
This commit is contained in:
parent
317887c4d2
commit
275d974120
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,8 @@ seek o = withKeyOptions (Just (keyOptions o)) False dummyfileseeker
|
||||||
|
|
||||||
start :: WhereUsedOptions -> (SeekInput, Key, ActionItem) -> CommandStart
|
start :: WhereUsedOptions -> (SeekInput, Key, ActionItem) -> CommandStart
|
||||||
start o (_, key, _) = startingCustomOutput key $ do
|
start o (_, key, _) = startingCustomOutput key $ do
|
||||||
fs <- filterM stillassociated
|
fs <- filterM stillassociated
|
||||||
|
=<< mapM (liftIO . relPathCwdToFile)
|
||||||
=<< mapM (fromRepo . fromTopFilePath)
|
=<< mapM (fromRepo . fromTopFilePath)
|
||||||
=<< getAssociatedFiles key
|
=<< getAssociatedFiles key
|
||||||
forM_ fs $ display key . QuotedPath
|
forM_ fs $ display key . QuotedPath
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue