question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When opening a directory that is already opened on your current tab, the application should not try to open it again

See original GitHub issue

What’s the Problem?

When opening a directory that is already opened on your current tab, the application should not try to open it again

Solution/Idea

When the current tab shows for example the Documents folder from the Favorites section, and you are trying to open the same path on the current tab, but now by clicking on the Documents tab from another section, for example Libraries, the tab refreshes and is trying to open the path without any need as it’s already opened.

So what I am proposing is that the application will check if the newly opened directory is the same as the one that is currently opened in the current tab (on the default settings it’s opening the directory in the same tab), and if it does. don’t do anything 😃

Alternatives

Not relevant…?

Priorities

Capability Priority
This proposal will allow end users to not have flashy objects reloaded on the screen when not needed Could

Files Version

2.0.13.0

Windows Version

Windows 10 21H1 19043.1266

Additional comment

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gave92commented, Oct 5, 2021

Thanks a lot for helping us understand the issue, I’m gonna close this one as the behavior is “correct”, it reloads as library and favorite sidebar items point to two different things. We’ll investigate on why explorer & files show different contents for the documents library.

1reaction
Mikey1993commented, Oct 5, 2021

@gave92 ,

Well the intended outcome is to show the same as Explorer, that for the Documents Library is to show the items of the two folders contained in the library grouped by folder:

For some reason my Documents library from the Explorer only showing files from C:\Users\XXX\Documents, and I don’t remember changing anything from my side on the Explorer settings…

Coming back to issue of “application should not try to open again a folder which is already open in the current tab” do you see this happening in any other case (other than for Libraries vs Favorites)?

I don’t think I can replicate this anywhere else, as I can’t pin the same directory two times anywhere.

Looks like if I pin a directory to Favorites, it knows not to open it again when clicking on it in the Favorites sidebar without reloading it, so this issue seems to be specifically tied to the case of Libraries vs Favorites 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I prevent VS Code from replacing a newly opened ...
1. Double-click your files instead of single-clicking. · 2. Double-click the tab you want to keep open · 3. Right click your tab...
Read more >
How to RESTORE MULTIPLE SESSIONS with TABS in ...
I ONLY HAD TO PRESS CTRL+SHIFT+T TWICE BEFORE THE PREVIOUS WINDOW THAT HELD ALL OF MY PINNED AND RESEARCH TABS POPPED UP! YOU...
Read more >
How to synchronize NERDTree with current opened tab file ...
If a NERD tree window has already been opened, using NERDTreeToggle will need to be fired twice(first close the existing one,then open it...
Read more >
How to Solve "File Is Open in Another Program" Error ...
Click the “Processes” tab if it's not already open. This lists everything that's currently running on your PC. Depending on which version of ......
Read more >
the action can't be completed because the folder or a file in ...
Open resource monitor (Windows +R to open Run then type Resmon.exe) · Open the CPU tab in the monitor · Select all processes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found