In the middle of the desert you can say anything you want
And yet another place to find this! :actionlist
as command in ideavim.
IdeaVIM Help: motion is the last readable docu I can find, from 2006.
gi
starts insert mode at the last place insert mode was exited; '^
just moves the cursor there.
Had an issue with “Class not found” when running tests, fixed with “Invalidate caches and restart”
My custom up/down keys set via xmodmap (<Super-C>
etc.) got recognized everywhere in the OS except intellij; Can get configured in intellij keymap.
“View -> Appearance -> Tool window bars” gives extremely useful tool window bars that include a number, the one I can use in <Alt-N>
bindings to make them appear! Same goes for the …tabs to the right with Structure etc.
Once N maven goals or whatever are run and N tabs opened, they can be found again in the “Run” tool window bar (<Alt-4>
). Particular tabs can be also successfully restarted.
mvn [target] -Dcheckstyle.skip
does the magic without editing any POMs etc. 1
Nightcore - Wikipedia - A nightcore edit is a cover track that speeds up the pitch and time of its source material by 10–30%.
in trockenen Tüchern - “cut and dried” = “final”. See in trockenen Tüchern - Wiktionary
Nothing to add, but I think it works if you have access via public key instead of passwords. scp what-ever:/home/whatever/..<TAB>
works nicely with zsh even visualizing it like usual.
Also TODO rsync apparently can do the same things as scp, but better, I should give it a chance.
It’s possible use panda’s graphs as an ax and do all other modifications to it!
ax = data.plot(y=['tp','fn'], kind='bar',stacked='true')
You can drag and drop graphs directly from jupyter into a google docs presentation
uniq
can compare stuff before / after N characters in the string, group together duplicate ones, etc!
uniq -w N
looks at only the N first characters.uniq -s N
don’tt look at the first N charactersuniq --all-repeated[=METHOD]
prints all duplicated lines and optionally separates them via METHOD. separate
is really nice as method.uniq -c
prefixes line by number of occurrences of that lineAnd I guess again - uniq
works only on sorted data.
~strikethrough~, *bold*, _italic_
.> quoting
is as usual.in:#team-marketing
in:@sara
to:@anna
before:4/12/2019
after:4/12/2019
on:4/12/2019
during:april
has::white_check_mark:
has:pin
is:saved
has:link
Had to remove this snipped from vimrc:
augroup remember_folds
autocmd!
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* loadview
augroup END
Will now try to use almost exclusively folding by tabs. For this, these are going to be helpful: 1
zo Open one fold under the cursor.
zc Close one fold under the cursor.
zO Open all folds under the cursor recursively.
zC Close all folds under the cursor recursively.
za When on a closed fold: open it.
When on an open fold: close it
zA When on a closed fold: open it recursively.
When on an open fold: close it recursively
zv View cursor line: Open just enough folds to make the line in
which the cursor is located not folded.
zX Undo manually opened and closed folds: re-apply 'foldlevel'.
Also forces recomputing folds, like |zx|.
zm Fold more: Subtract one from 'foldlevel'.
zM Close all folds: set 'foldlevel' to 0.
zr Reduce folding: Add one to 'foldlevel'.
zR Open all folds. This sets 'foldlevel' to highest fold level.
zn Fold none: reset 'foldenable'. All folds will be open.
zN Fold normal: set 'foldenable'. All folds will be as they
were before.
zi Invert 'foldenable'.
MOVING OVER FOLDS
[z Move to the start of the current open fold.
]z Move to the end of the current open fold.
zj Move downwards to the start of the next fold.
zk Move upwards to the end of the previous fold.
coding style - Where does the TODO convention come from? - Stack Overflow - XXX
as marker for something dangerous. Fixme Comment in c2 wiki for more.
Very ugly but it works:
fun! SetTodo()
syn match modo /.*MODO.*$/
hi link modo Keyword
syn match nodo /.*NODO.*$/
hi link nodo javaScript
syn match todo /\s*TODO.*$/
hi link todo vbTodo
syn match done /\s*DONE.*$/
hi link done cssListProp
syn match xxx /\s*XXX.*$/
hi link xxx htmlError
endfu
autocmd filetype markdown :call SetTodo()
jq
jq . inputfile.json
gives a nice pretty colored indented output.
Works also in this shorter format:
https://www.wolframalpha.com/input/?i=time+between+2020-10-06+11%3A22%3A50+2020-10-06+14%3A53%3A49
(time between $date1 $date2
)
Remembered about and updated the shortcuts for focusing the different monitors:
# focus outputs screen
bindsym $ms+a focus output eDP-1
bindsym $ms+o focus output HDMI-2
bindsym $ms+e focus output DP-1-1
Connected to me remembering about the tabbed layout:
# change container layout (stacked, tabbed, toggle split)
bindsym $ms+s layout stacking
bindsym $ms+Shift+t layout tabbed
bindsym $ms+Shift+s layout toggle split
takes less space than my usual stacked, but makes it hard to focus a different screen via left/right - until now.
For removing multiple folders if it has to be done often, and the folders may or may not be there, esp. with wildcards, current best option I found is not to do rm -rf one/* two/*something* three
but rm -rf one/* && rm -rf two/*something* && rm -rf three
. If one breaks the other ones will still run.
rm -r **
unalias rm
1I don’t know why but the following works for me - no questions asked [..]
rm -rf **
Works for me too.
That answers a question, but not this one! :) – Lambart Jul 28 ‘17 at 0:43 2
ideavim/package-info.java at master · JetBrains/ideavim
* |CTRL-B| {@link com.maddyhome.idea.vim.action.motion.scroll.MotionScrollPageUpAction}
* |CTRL-D| {@link com.maddyhome.idea.vim.action.motion.scroll.MotionScrollHalfPageDownAction}
* |CTRL-F| {@link com.maddyhome.idea.vim.action.motion.scroll.MotionScrollPageDownAction}
* |<BS>| {@link com.maddyhome.idea.vim.action.motion.leftright.MotionLeftWrapAction}
* |CTRL-H| {@link com.maddyhome.idea.vim.action.motion.leftright.MotionLeftWrapAction}
Half-page-down (<Ctrl-D>
) doesn’t work in the output of running programs / debuggers, but <Ctrl-F>
always does. (And <Page Down
> too, ofc.)
ls -l
, last modified and files from last yearme@server:/some/folder$ ls -larh ..
total 290M
drwxr-xr-x 3 me users 4.0K Jul 7 16:51 file
drwxr-xr-x 4 me users 12K Jul 7 16:51 file
drwxr-xr-x 4 me users 4.0K Jul 7 16:42 file
drwxr-xr-x 2 me users 4.0K Jul 7 16:32 file
drwxr-xr-x 4 me users 4.0K Jul 7 16:32 file
-rw-r--r-- 1 me users 0 Jul 7 16:19 file
-rw-r--r-- 1 me users 4.0K Jul 7 16:19 file
-rw-r--r-- 1 me users 0 Jul 7 16:31 file
-rw-r--r-- 1 me users 1.6K Jul 7 16:32 file
-rw-r--r-- 1 me users 144M Oct 1 13:23 file
drwxr-xr-x 7 me users 4.0K Oct 1 13:35 file
-rwxr-xr-x 1 me users 4.9K Oct 2 2019 file
-rw-r--r-- 1 me users 46K Oct 4 2019 file
-rw-r--r-- 1 me users 45K Oct 2 2019 file
-rw-r--r-- 1 me users 146M Oct 2 2019 file
drwxr-xr-x 2 me users 4.0K Oct 2 2019 file
-rwxr-xr-x 1 me users 3.8K Jul 7 16:32 file
drwxrwx--- 13 500 users 4.0K Mar 27 2020 ..
drwxr-xr-x 9 me users 4.0K Sep 30 17:10 .
If files are not from this year, it shows the year instead of the time!
Jacksum - a free cross platform checksum utility
Is also in the repos as jacksum
.
jacksum -a hashingAlgo -x filename
<Ctrl-plus>
and <Ctrl-minus>
increase / decrease Slack font size!
bash - Linux head/tail with offset - Stack Overflow:
-n, --lines=K
output the last K lines, instead of the last 10;
or use -n +K to output lines starting with the Kth
You can therefore use
... | tail -n +2 | head -n 3
to get 3 lines starting from line 2.
Simple but effective. tail -n +N
does tail
starting from linenumber N.
Search is search, but “find in path” (and some other stuff) is find. I wonder if there’s a meaningful semantic difference in there. Semantic difference between Find and Search? - Stack Overflow has the logical ones, but I can’t connect it to how intellij idea uses them.