How can I start vifm with horizontal splitting - vifm

Is it possible to start vifm with horizontal splitting?
I launch tmux with several panes. I want to have vifm in one of them, but it doesn't look nice in vertical split mode and I always have to change split mode manually.

Just put :split command to your ~/.vifm/vifmrc file.
Command description:
:sp[lit] - switch to a two window horizontal view.
You can do the same with pretty much any other command-line command. Say, since we're talking about layout here, it could be :vsplit or :only.

Related

How can I redesign octave

I downloaded octave and accidentally pressed some buttons which changed the design of the software to be more specific it doesn't look like how my professor at university was working with it . Could you please help me to fix it in order to look like how it did in the beginning?
I upload a picture of how it looks like now
OK, it appears you are only looking at the Editor window, which is normally docked with other windows like the command window, documentation, etc. It also appears to be maximized, hiding everything else.
In the upper right you see two icons, one that looms like an x, and one that looks like two overlapping squares (two windows). If you click the x, that should close the editor and you should be able to see the rest of your desktop including the rest of the octave GUI. If you cannot see octave anywhere, of you are in Windows try using ALT-Tab or clicking on Octave in the task bar to make the window visible.
In the main octave window there should be a "Reset Default Window Layout" menu item under the Window menu. That should restore everything to the default layout without having to go to the trouble of a full reinstall.
The following YouTube video doesn't exactly match your problem, but it does show how to change and restore the GUI layout:
https://youtu.be/0USOvYHLqSU

Disable Horizontal Scrolling in PhpStorm

Is there a way to do this? I'd much rather have the code wrap and say within 80-100 character line lengths. The scroll over every time I swipe is driving me crazy!
There is "soft wraps" functionality in IDE -- it does just that -- it virtually (on a screen only) breaks the line into multiple to show whole line without the need for horizontal scrolling.
It can be enabled at:
For all files: Settings/Preferences | Editor | General |Soft-wrap these files
For current file only: View | Active Editor | Use Soft Wraps
These options are also available via gutter context menu (the area where the line numbers are). If you have customized that context menu long time ago ... then they may not be there (as they were added there straight away).

Xceed AvalonDock 2: dock/arrange/split my LayoutDocuments horizontally AND vertically

I have been using AvalonDock 1 for an old project, that needs a refresh/rewrite, so I started looking at AvalonDock 2.
One feature I am missing or not sure how to achive is the ability to freely dock/arrange/split my LayoutDocuments horizontally AND vertically.
My app has no docked parts, just the main area containing documents.
When I start off with several documents tabbed and start to drag one, then I can choose to either split horizontally or vertically.
However, when dragging another document, I can only choose to split the same way as before.
See how the second step has fewer dock/split options below:
I would like to be able to dynamically dock the window either below the left, the right or both windows.
How can this be achived? It was working with version 1.
You can do this by setting AllowMixedOrientation to True in the XAML of your DockingManager.
<xcad:DockingManager AllowMixedOrientation="True" ...>
</xcad:DockingManager>

PhpStorm keyboard shortcut for code inspection recommended resolution?

If you run a code inspection, you might get something like this in the results panel:
Problem synopsis:
Traditional syntax array literal detected (at line 193)
Problem resolution:
Convert Array Syntax To Short
i.e. it's telling you to change array() to []
The 'resolution' is clickable and it'll fix it for you. But is a keyboard shortcut, or a way of shading identical problems (often you get a bunch of them) and having them fixed for you all at once?
You can use f2/Shift+f2 to jump to next/previous error, then hit Alt+Enter, Enter to apply suggested fixes.
Note that there is a Code | Code Cleanup... command that runs inspections against your code and applies quickfixes. But it only includes a small subset of available inspections that are considered 'safe', so that applying hotfixes automatically doesn't break anything
Use standard shortcut: same as for invoking intentions menu (Quick Fix menu) manually in Editor: Alt + Enter (for Windows/Linux, not sure what that would be on Mac)
Also you can take a look at this tool: https://github.com/fabpot/PHP-CS-Fixer

swing: saving dialog box resize dimensions

I have a dialog box with a bunch of dimensions that a user can change by moving/dragging, including a JTable with resizable/draggable columns.
What I would like to do is to make the state of these resizable columns / dialog boxes / etc. persistent, so the next time my application starts up, the user doesn't have to go through the resizing step all over again.
What's the most convenient way to do this?
You should probably take a look at the code in (the now probably dead) JSR-296. A part of it was focused on persistent session state, and I know for sure that the code for persisting window locations and such was already functional and in the basic framework. It should either already do what you want, or provide a good starting point.
Cfr. dev.java.net site for JSR-296