command line
command that executes gradle build
. I can get to the gradle execute tasks easily with command! Gb action Gradle.ExecuteTask
in my ~/.ideavimrc
but adding build
after the command leads to an error 'Action not found: Gradle.ExecuteTask build'. Any ideas on how to solve this?
@AlexPl292
Hi Alex
Yor comment for VIM-1476:
"Actually, it looks like this case is a bit more complicated than expected. Because at the moment lastKeys contain a list of "raw" commands, so in case if user types ab then presses left arrow and types c (acb in the result), we should also process this left arrow for correct . register representation. But since in IdeaVim dot register has only representation purpost, I guess this small inconsistency can be ignored at the moment."
Is there a task for this?
I would try to fix it.
<Leader><Leader>
. All the other mappings work except this one, I have to source my .ideavimrc
file in order to get that mapping working.
nmap <silent><Leader>g :call setbufvar(winbufnr(popup_atcursor(split(system("git log -n 1 -L " . line(".") . ",+1:" . expand("%:p")), "\n"), { "padding": [1,1,1,1], "pos": "botleft", "wrap": 0 })), "&filetype", "git")<CR>
git log --max-count=1 -L 364,+1:services/sfjapi/tests/conftest.py
in that case
GitToolBox
git blame dialog
git blame -L 364,+1 services/sfjapi/tests/conftest.py
would output dde5debe (euri10 2021-02-28 15:05:38 +0100 364) job = ArqJob(job_id=job_id, redis=arq_redis)
while git log --max-count=1 -L 364,+1:services/sfjapi/tests/conftest.py
would be more complete and look like commit dde5debe1aa8579376834402abed88ab6f52d6b5
Author: euri10 <benoit.barthelet@gmail.com>
Date: Sun Feb 28 15:05:38 2021 +0100
Passing test with seperated lake update : it happens in its own fixture after upload_ls
diff --git a/services/sfjapi/tests/conftest.py b/services/sfjapi/tests/conftest.py
--- a/services/sfjapi/tests/conftest.py
+++ b/services/sfjapi/tests/conftest.py
@@ -362,0 +363,1 @@
+ job = ArqJob(job_id=job_id, redis=arq_redis)
Is it possible to express the escape key from from a mapping such as:
nnoremap <leader>1 iprintln("======")(...escape here...)
In actual Vim I would do this by typing ctrl-v then the escape key, but this does not seem to work in IdeaVim. Is there another way to do this?
External filters do not seem to work for me in Idea
In vim we can filter text through external script like this:
Having a cursor on a line like this:
something
I execute command:
:.! echo __$(cat)__
And get a line:
__something__
In Idea this doesn't seem to work.
:.! echo __$(cat)__
just returns the string __$(cat)__
as is.
:.! echo foo
or :.! cat
or :.! ls
work like expected though - they insert the results of these commands
But for example:
This works in vim:
:.! ruby -e 'puts 777'
(it will insert 777 at current line)
But in Idea it just deletes current line for some reason.