This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I wanted the Netbeans IDE had the same functionality of Chrome and Firefox browsers to open the last tab quickly with the content intact. This need arose because sometimes closing a tab accidentally.
Closing a tab accidently means closing an edited file, that can be reopened 'quickly' using the File -> Open Recent File submenu :) If you speak about another tabs (not file related ones) then they can be reopened the normal Window menu. Cheers.
I would personally like such action too and have a Ctrl+Shift+T shortcut for it (like in a browser). Reassigning to window system for evaluation.
*** Bug 203872 has been marked as a duplicate of this bug. ***
*** Bug 212594 has been marked as a duplicate of this bug. ***
*** Bug 212595 has been marked as a duplicate of this bug. ***
Would it be possible to add this option to the context menu for the tabs? It makes sense to me to put it there together with Close and Close All and Close Other. :)
Please have a look how it works by "Tab Mix Plus" Addon on Firefox. There are 2 actions in the context menu: - Open closed tab - Recent closed tabs -> [Submenu with last X closed tabs] Additionally you can have "Close all left/right tabs": bug 185733
I like the most original and Miroslav Metelka (comment #2) proposals: ctrl+shift+t will open new tab displaying preview boxes of recently closed files.
(In reply to comment #2) > I would personally like such action too and have a Ctrl+Shift+T shortcut for it > (like in a browser). > Reassigning to window system for evaluation. I totally agree with it.
(In reply to comment #2) > I would personally like such action too and have a Ctrl+Shift+T shortcut for it > (like in a browser). > Reassigning to window system for evaluation. That's exactly what I want. I would love to have this feature in Netbeans.
Me too. Btw, it'd have been great if we had a way to "upvote" instead of having to write that we agree with a suggestion. Here's what it could look like: http://sublimetext.userecho.com/
Then why don't you simply vote for this bug by clicking "vote" link next to its priority? Scroll up this page to see it.
Because I didn't realize that I could and that's not my fault. The UI is bad.
I agree that it's not too straightforward. :(
core-main 17758528e893 The default keyboard shortcut is Ctrl+Alt+T as Ctrl+Shift+T is already taken for Go To Test actions.
Integrated into 'main-golden', will be available in build *201206280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/17758528e893 User: S. Aubrecht <saubrecht@netbeans.org> Log: #204345 - keyboard shortcut to reopen recently closed file
Thanks for the fix, it is really helpful. Anyway, I have verified it at trunk and the default shortcut is not friendly for Linux distros, since many of them use Ctrl + Alt + T for Terminal. I don't know if it is a issue for another OSes but it could be a issue for Linux users.
Well, there's a shortage of available shortcuts in NetBeans. Perhaps I can trade Ctrl+Shift+T shortcut with Go To Test action...
(In reply to comment #18) > Well, there's a shortage of available shortcuts in NetBeans. Yes, I am aware of it :( I really have no idea what a good shortcut it could be, maybe the UI engineer could help us on this?
Any hints from UI team?
IMHO it would be best if the keyboard shortcut is the same as people are already used to in most browsers (Ctrl+Shift+T). And I believe that this action would be used much more frequently than Go To Test, making the swap in shortcuts worthwhile. :)
I strongly disagree. Go to test/go to class under test is one of the most important shortcuts for me. Besides it is the same in intellij, so transition from intellij to netbeans - or vice versa - is easier keeping the shortcuts semantics. The usage of <ctrl><alt>T for a terminal is really a pity. Perhaps <ctrl><alt><shift>T could be used instead?
Ctrl+Alt shortcuts should be avoided altogether. One reason is that it collides with AltGr (cf. http://blogs.msdn.com/b/oldnewthing/archive/2004/03/29/101121.aspx), another is that it's generally used for global system-level shortcuts (e.g. http://blogs.msdn.com/b/oldnewthing/archive/2004/03/29/101121.aspx#101243).
I'm looking forward for this feature too!
verified in trunk Product Version: NetBeans IDE Dev (Build 201208170001) Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09 System: Mac OS X version 10.8 running on x86_64; US-ASCII; en_US (nb) User directory: /Users/tomas/Library/Application Support/NetBeans/dev Cache directory: /Users/tomas/Library/Caches/NetBeans/dev ..please proceed with backport of fix.
transplanted to release72 branch as c398583e5305
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/c398583e5305 User: S. Aubrecht <saubrecht@netbeans.org> Log: #204345 - keyboard shortcut to reopen recently closed file (transplanted from 17758528e89303eb1702d8960fbb6bc857ec552f)
(In reply to samirfor from comment #0) > I wanted the Netbeans IDE had the same functionality of Chrome and Firefox > browsers to open the last tab quickly with the content intact. > > This need arose because sometimes closing a tab accidentally. I need this to
Watch the movie: https://www.youtube.com/watch?v=Mp0m9x2dpU4 It shows "Open Recent File" in action, as well as "Last Edit".
"Open Recent File" doesn't work for SQL tabs