Keyboard shortcut for going onelevel up in midnight commander [mc] - keyboard-shortcuts

Is there a keyboard shortcut for going one level up in the directory tree in midnight commander (mc), which will save me from going all the up to the ..?
As shown below - say I'm in a directory that contains tonnes of stuff, and its painful to scroll all the way up. Its clickable, but nothing beats keyboard shortcuts!

If you go to Options->Panel-Options and tick the "Lynx-like motion" option you can use left-arrow to go to the parent directory and right-arrow to enter a directory.

Does Home, Enter count as a keyboard shortcut?

Short answer: No.
Longer answer: Ctrl + PageUp goes to the last diretory - not the parent, but this may be what you want in most cases.
(https://www.midnight-commander.org/ticket/2420)

Without changing the default setup Alt + Y and Alt + U go to previous and next directory in history, which may be enough on most cases (Alt + H to see the full history). If not, you always have Home, Enter.
Alt + Arrows are used to move between windows on byobu/tmux.
To add a custom shortcut (like Backspace) to your user config:
echo 'CdParentSmart = backspace' >> ~/.config/mc/mc.keymap # Globally in /etc/mc/mc.keymap
Here more related handy shortcuts.

In /etc/mc/mc.default.keymap find and uncomment CdParentSmart in [Panel] section. If it's not there, add it. And set a key you want. Behavoir similar to Total/Double Commander would be CdParentSmart = backspace. So it will backspace command line, if it's not empty. Or will level up from any place, if command line is empty.
The file should be edited when MC is not running, as it is resetting it to currently loaded settings on exit.

Related

IntelliJ IDEA: Can't type { and [

So I have a problem where in IntelliJ IDEA I can't type In
<br>{ --(Alt Gr + B or Ctrl + Alt + B)
and
[ --(Alt Gr + F or Ctrl + Alt + F)
<br>
I did try to edit shortcuts but there are no shortcuts that match mentiond ones
And when I try using SquareBrackets I get a message a little bit like this: "Cannot perform refactoring. Caret should be positioned at the name of local variable or expression to be refactored"
How can I fix this problem?
It worked for me by going to Ctrl+Shift+A (actions) -> Registry... and then disabling "actionSystem.force.alt.gr"
Worked for me:
While focus is on PyCharm then Ctrl+Shift+A (actions) -> Registry... and then enabling "actionSystem.force.alt.gr"
An other solution (not related to Jetbrain's suite).
This solution suits you if :
The problem is sporadic (occurring at irregular intervals and eventually disappear)
AltGr combinations seems not works on some other windows app
In this case this is a well known bug in Windows, just close all your RDP sessions and the AltGr will start acts as it should.
Guys I found a solution to BOTH of the problems So here are the solutions:
This applies for:
KeyBoards Without [ and { keys (I just English-UK ones have those keys)
and IntelliJ IDEA Deafult KeyMap (May work for some others)
For the "Can't type [ in IntelliJ IDEA":
1.Press Ctrl + Alt + S ,Alt Gr + S or Goto: File > Settings > KeyMap
2.Extend Folder:Main Menu, then folder Refactor and THEN folder Extract
3.Right-Click onto Field...
4.In the pop-up menu Click on Remove Ctrl + Alt + F
For the "Can't type { in IntelliJ IDEA":
1.Press Ctrl + Alt + S ,Alt Gr + S or Goto: File > Settings > KeyMap
2.Extend Folder:Main Menu, then folder Navigate and THEN folder Bookmarks
3.Right-Click onto Implementation(s)
4.In the pop-up menu Click on Remove Ctrl + Alt + B
Hope that helped You :D
There are related issues on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-177327, https://youtrack.jetbrains.com/issue/IDEA-91975
Problem should be fixed in IDEA 2018.3.
By the way, you could try to add "actionSystem.force.alt.gr=true" option using "Help | Edit Custom Properties"
win10
Pycharm 2018.1.3
ctrl+shift+A
Registry
ENABLE "actionSystem.force.alt.gr", which was disabled initially
SOLVED for me!
In my case it was caused by LaTeX plugin for IntelliJ IDEA. After its installation the 'Toggle Star' option key was set 'alt+shift+8' which coincides with { of my keyboard. Hence the solution is analogous to your own answer:
1) Open Keymap (double-shift and type keymap)
2) Expand: Main menu > LaTex
3) Right-click 'Toggle Star' and remove the mapping.
4) Apply + Ok
If your problem is happening all over Windows and you have two different active Keyboard Layouts, for example English and German, this is what worked for me (don't ask me why):
switch to english (win + space), and type a { there (shift + Key to the right of P).
now switch back to your original language and it should be working again
I had the same problem but with PyCharm.
Unfortunately none of the mentioned answers worked for me. I am on an MacBook using a German layout keyboard. The Problem for me was a changed default setting in the terminal settings. I had to disable "Use Option as Meta Key". On a German Keyboard many "special" characters like [],#, {}, etc. are alt(option) Key-Combinations. I think this is true for other european keyboards as well. (I know for the suisse and the danisch for sure)
In my case, another application was using Alt Gr + 7 && Alt Gr + 8 shortcuts for other processes. So if previous solutions are not helpful, make sure that shortcut is not being used by another program.

XCode9 how to get right click > Structure > Reindent back?

I see that XCode9 is messing up the indentation of my code. Before this could be fixed with right click > structure > re-indent. How do I get equivalent behavior in XCode9?
This won't get the Structure->Re-Indent context menu back but might be useful.
There's a ^I (ctrl + i) shortcut for that, which re-indents selection.
If you don't want to use Key Bindings, the command is available using the menu:
Editor->Structure->Re-Indent
Note that default combination looks very much alike ^| (ctrl + shift + \) on Key Binding pane . I've been banging this combo for some time and even redefined the shortcut to ctrl+shift+\ before figuring out the correct one:

IntelliJ Producs go to last opening bracket when pressing Alt + Gr + 8 ([)

I have IntelliJ Idea 15 IU-143.381 and Webstorm WS-143.381
Given you have the following code:
int[] i = new int[3];
at some point (fixed after restart but coming again quite quickly....) I cannot do this simple thing, because I am on a German layout keyboard. For inserting a [ does not work any more.
I need to press Alt Gr + 8 to type a [.
This results into jumping to the last opening }
for example. I have typed this:
public void foo(){
int
On pressing the [ the cursor moves from after int in the second row to the position after foo(){. This is continued till you are up in the class's opening brackets [in Java]. I have tried it in Webstorm with JS and there it is the same. Anyone has an idea how to fix this?
I am on Windows 10 64-bit, German UI and keyboard layout.
Reset IntelliJ/Webstorm/another Jetbrains product's settings by deleting the user preferences folder (for exemple C:\Users\[user]\.IdeaC-[version] in Windows), then when you are told about "smart keyboard shortcuts", then just ignore it and it will never reappear again.
Just remember that this will reset your other preferences too.
I had the same issue with Android Studio 2.0, which is based on IntelliJ. I'm using a Swiss German keyboard layout, on which in have to press Alt Grü to write a bracket [, and Alt Gr! for a ] respectively.
For some reason this matches the keyboard shortcut for "Move Caret to Code Block Start", which was registered as Ctrl[. Same for "Move Caret to Code Block End" with Ctrl]. Looks like IntelliJ cannot handle this correctly.
To fix the issue, I simply removed those shortcuts in File > Settings > Keymap.

How can I find particular file in IntelliJ IDEA?

I need to find test.xml in IntelliJ IDEA. How can I do that? Keyboard shortcut if any?
cmd+shift+o (cmd+shift+n in older versions) leads to the file open dialog (on mac).
You can use * chars as wildcards. If there is more than 1 file with the name, you will see the directory of the file for each entry to help you make the choice.
In Windows:
Ctrl + Shift + N
or
Navigate > File...
My IntelliJ version is,
IntelliJ IDEA 2016.2.4
For me, cmd+shift+n doesn't work.
But,
command + shift + o
works perfectly for me.
The above shortcut will give you the dialog box to search a file.
For more help,
On the main menu, point to Navigate, and then choose Class, File, or Symbol respectively, or use the following shortcuts:
Class: ⌘O
File (directory): ⇧⌘O
Symbol: ⌥⌘O
Source : JetBrains.com
Just hit quickly Shift Shift in a row to reveal a pop-up window to search for everything. You can then start typing to search for files. It's a fuzzy finder, so to match e.g. SomeClassWithALongName.java you can just type: sclwlna (or other letters combination, which has the same order of occurance in the target file name).
Well, this is very frequently asked a question by users who switch OS. I recently switched from Windows to MAC.
To open file shortcuts go as follows
Windows : ctrl+shift+n
MAC : command + shift + o
command + E
It Will Open Recent Files

What is the equivalent of option/alt + left/right arrow on debian but on a Mac OS X?

As the title says...
It's been annoying me forever that I can't skip over words when writing in the Mac terminal (it works when im logged into Debian via ssh on the Mac terminal)
I get '[D' on Mac instead of jumping a word left.
Option + B to skip back a word, Option + F to skip forward a word. You also have to use the option key as the meta key.
Ctrl-[ b should jump back a word. You can also use Esc instead of Ctrl-[, and f to go forward.
The same key combos will work on Linux (over SSH, or sitting at the machine) and doesn't require adjusting to different keyboard layouts.
The answers here do not solve the issue in my opinion. To get GNU like word scrolling, you can edit your key bindings for CTRL + -> and CTRL + <- in order to have them skip words.
ITERM(2)
Go to Preferences -> Profiles -> Keys -> + (Under the bindings)
You will have a prompt asking you for a keyboard shortcut, press CTRL and the arrow key you are using.
Set ACTION to SEND ESCAPE SEQUENCE
Set ESC+ to b (for back) or to f (for forward)
TERMINAL
Preferences -> Profiles -> Keyboard -> + (Under the bindings)
Set KEY to <- Cursor left or right
Set MODIFIER to ^ Control
Set ACTION to Send Text
Set the empty input box to either \033f (for forward) or \033b (for backward)
After exiting, you will be able to skip forward and backward by 1 word, exactly like in GNU Linux.
Please note that there will be an issue with vim for cycling forward, as noted here:
https://superuser.com/questions/639992/iterm2-vim-altright-left-arrow
I hope this helps!