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.

Bug 248233 - Please add a shortcut to split the current window.
Summary: Please add a shortcut to split the current window.
Status: CLOSED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-28 16:19 UTC by Christian Lenz
Modified: 2017-09-16 17:34 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Patch for the logic (30.83 KB, application/octet-stream)
2017-03-02 19:44 UTC, Christian Lenz
Details
NEW patch for splitting doc. (30.40 KB, application/octet-stream)
2017-05-19 13:28 UTC, Christian Lenz
Details
Clean new patch (35.33 KB, patch)
2017-06-09 14:47 UTC, Christian Lenz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lenz 2014-10-28 16:19:57 UTC
I used a plugin called flow-netbeans-markdown (http://plugins.netbeans.org/plugin/50964/markdown-support). This plugin has a preview to show the output, what I'm typing, but I only can change between source, history and preview via Ctrl + Alt + Page Up/Down in the same window. The problem is that I disabled the option "show editor toolbar" so I can't split the window anymore without using the mouse. I would like to have on one side my sourcecode and on the other side my preview, and this is what I would like todo with a shortcut. Type Ctrl + Alt + Whatever, should split the window, then I can navigate to the other view and type Ctrl + Alt + Page Up/Down to take the preview.

I created a ticket here: https://github.com/madflow/flow-netbeans-markdown/issues/61#issuecomment-59777381 and you can see, that the dev means that this should be a default functionality, to split a window with a shortcut and to show the preview via navigation or to split the window and show the preview with a shortcut. If there is a preview or similar thing available. And yes I go with this opinion.


Regards

Chris
Comment 1 Christian Lenz 2016-07-08 12:44:23 UTC
I'm working on a plugin to handle this poblem: https://github.com/Chris2011/NbQuickSplit
Comment 2 Christian Lenz 2017-01-04 12:49:46 UTC
I think I will implement it as default into the NetBeans source :)
Comment 3 Christian Lenz 2017-01-04 12:50:00 UTC
As a patch or so. Makes much more sense.
Comment 4 Christian Lenz 2017-02-21 08:39:05 UTC
Deleted my plugin repo to create a plugin for this and changed it directly in the core code of netbeans and made a pull request: https://github.com/emilianbold/netbeans-releases/pull/2
Comment 5 Christian Lenz 2017-03-02 19:44:42 UTC
Created attachment 163749 [details]
Patch for the logic

I added the patch for the Pull Request: https://github.com/emilianbold/netbeans-releases/pull/2
Comment 6 Stanislav Aubrecht 2017-03-29 08:08:58 UTC
I tried the patch today but it didn't apply correctly. Can you please attach a fresh patch for the recent trunk sources?
Comment 7 Christian Lenz 2017-03-29 08:20:19 UTC
Sure, I can. Maybe at the weekend or so. Thx for the try.
Comment 8 Christian Lenz 2017-05-19 13:28:45 UTC
Created attachment 164355 [details]
NEW patch for splitting doc.

A bit late but here is the patch.
Comment 9 Stanislav Aubrecht 2017-05-22 16:10:00 UTC
Applying the path failed again:

applying patch: /Users/stan/Downloads/docSplit.patch
--- Successfully Patched ---
/Users/stan/hg/main-silver/core.multiview/src/org/netbeans/core/multiview/SplitDocumentAction.java
/Users/stan/hg/main-silver/core.multiview/src/org/netbeans/core/multiview/SplitDocumentHorizontallyAction.java
/Users/stan/hg/main-silver/core.multiview/src/org/netbeans/core/multiview/SplitDocumentAction.java
/Users/stan/hg/main-silver/core.multiview/src/org/netbeans/core/multiview/SplitDocumentHorizontallyAction.java
--- Failed ---
/Users/stan/hg/main-silver/core.multiview/src/org/netbeans/core/multiview/SplitAction.java (Cannot apply hunk @@ 11 )
/Users/stan/hg/main-silver/core.multiview/src/org/netbeans/core/multiview/SplitDocumentVerticallyAction.java (Index: 0, Size: 0 )
/Users/stan/hg/main-silver/core.multiview/src/org/netbeans/core/multiview/SplitAction.java (Cannot apply hunk @@ 7 )
/Users/stan/hg/main-silver/core.multiview/src/org/netbeans/core/multiview/ClearSplitAction.java (Index: 0, Size: 0 )
/Users/stan/hg/main-silver/core.multiview/src/org/netbeans/core/multiview/SplitAction.java (Cannot apply hunk @@ 24 )
/Users/stan/hg/main-silver/core.multiview/src/org/netbeans/core/multiview/SplitDocumentVerticallyAction.java (Index: 59, Size: 0 )
Comment 10 Christian Lenz 2017-06-09 14:47:00 UTC
Created attachment 164496 [details]
Clean new patch

So now here is a brand new patch. Updated the master branch from the synched repo of emilian bold: https://github.com/emilianbold/netbeans-releases

Created a new branch (locally) to copy 1 by 1 the feature again.

Created the patch. Hope everything is fine now.
Comment 11 Christian Lenz 2017-07-03 11:48:25 UTC
Still problems here?
Comment 12 Christian Lenz 2017-09-16 17:34:30 UTC
I will close it, because it will handled now at the JIRA board: https://issues.apache.org/jira/browse/NETBEANS-59. Please feel free to change the state of the ticket.