Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    euri10
    @euri10:matrix.bartab.fr
    [m]
    sure, when you are on a file that is "gitted" and press leader g on any line, then it popups a small window with the git commit where that line was added
    it's basically doing git log --max-count=1 -L 364,+1:services/sfjapi/tests/conftest.py in that case
    but inside the editor
    Lee Turner
    @leeturner
    git-blame.png
    Can't seem to attach this image to the thread so will post it here . This is the GitToolBox git blame dialog
    euri10
    @euri10:matrix.bartab.fr
    [m]
    yep, 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)
    I did not know that plugin , will try it, I tend to prefer using defaults but :)
    3 replies
    NEUKhoaLe
    @NEUKhoaLe
    can anyone tell me how to remap Escape on ideavim
    1 reply
    ryandanielspmc
    @ryandanielspmc

    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?

    2 replies
    Pavel Gorgolevskiy
    @mechos3d
    Hi all !

    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.

    14 replies
    Edward Amons
    @Edwardlin-zlt
    image.png

    image.png

    How you guys select the whole block using vim shortcuts when cursor at any place inside the block

    5 replies
    Michal Placek
    @MichalPlacek
    @AlexPl292
    Hi Alex,
    Finally I have some free time.
    I was looking at VIM-1062.
    I think i`m able to do this task.
    The way "bd" and "bdX" is supposed to work is obvious.
    I have question to "bn" and "bp":
    next and previous should be taken from buffer list or from tabs order ?
    3 replies
    Luka
    @cimpresovec
    Hello everyone. I just got the plugin updated and tried the new global mode, but it looks like it doesn't support executing macros?
    Or am I using it wrong?
    I tried something like %g/pattern/normal @q
    3 replies
    Farid MUSA
    @mmtechslv

    Hello everyone,
    I assigned a new macro in ~/.ideavimrc file but for some reason, it does not work. The macro works when I source the ~/.ideavimrc file in separate VIM but does not work in PyCharm. What could be the cause of this? Maybe it's a bug?

    Macro: let @z = ':%s/"""_.{-}"""_s*//'

    Thanks!

    Farid MUSA
    @mmtechslv

    Hello everyone,
    I assigned a new macro in ~/.ideavimrc file but for some reason, it does not work. The macro works when I source the ~/.ideavimrc file in separate VIM but does not work in PyCharm. What could be the cause of this? Maybe it's a bug?

    Macro: let @z = ':%s/"""_.{-}"""_s*//'

    Thanks!

    Ok, its solved! I had a mistake in the regex pattern. It should have been: let @z = ':%s/"""_.{-}"""_s*//'

    Michal Placek
    @MichalPlacek
    I was made pull request JetBrains/ideavim#334
    Teamcity reported that GlobalHandlerTest has failed.
    I ran local tests and found the tests to be very unstable.
    On repeat invocation, the number of failed tests varied between 91-93.
    Is anyone already researching why this is happening?
    Geoffrey van Wyk
    @geoffreyvanwyk
    I want to assign a mapping for the Refactor > Rename... action. How can I find out what its one-word name is? For example, the one-word name for Navigate > File... is GotoFile.
    5 replies
    Sebastian Nielsen
    @Sebastian-Nielsen
    Can anyone else map ctrl+j? It doesn't work for me:
    nmap <C-j> asdf
    8 replies
    Sebastian Nielsen
    @Sebastian-Nielsen
    Is it bugged?
    Sebastian Nielsen
    @Sebastian-Nielsen
    jonatanprins
    @jonatanprins
    Exciting secret discussion
    Eduardo Assis
    @edassis
    Hello everyone,
    What is the command to open "Find in Files" using the leader key?
    8 replies
    Lee Turner
    @leeturner
    I just realised that IdeaVim is no longer displaying relative line numbers for me. These were usually pulled in from having source ~/.vimrc at the top of my .ideavimrc but this no longer seems to work. This must have been one of the resent upgrades but I just didn't notice it. Do I now need to specify this in my .ideavimrc ?
    3 replies
    Spencer Williams
    @spencerwi
    Apologies if this has been asked before, but do custom commands (command! MyCommand <action>(Whatever.Action)) support ranges? I'm trying to make my "actual-vim" and IdeaVim setups as similar as possible to one another, and I use the '<,'>GBrowse command provided by fugitive.vim a lot in actual vim, so I'd like to define a similar range-accepting command in my .ideavimrc to map it to the Github.Open.In.Browser IDE action, but whenever I try command! -range GBrowse <action>(Github.Open.In.Browser), IdeaVim complains that "custom commands must begin with an uppercase letter" (which leads me to believe that it's not accepting the -range option)
    Ariel Viera
    @avierax
    hi, how do i expand selection in ideavim
    2 replies
    Jonathan Jacobs
    @jonathanj
    Is it possible to have a binding that calls FindInPath so that the mode is set to "Scope: Open files", without having to manually change the UI?
    1 reply
    renierG
    @renierG
    This message was deleted
    1 reply
    Ethan Godden
    @lindstrum
    Is it expected that "gUU" or "guu" moves the cursor to the beginning of the line after you use the command? This doesn't seem to happen in Vim.
    1 reply
    Sebastian Paarmann
    @spaarmann
    Hi! I'm trying to use mappings like nnoremap <c-j> <Esc> and inoremap <c-j> <Esc> in IdeaVim in Rider. The mapping works in principle, but it doesn't close the autocomplete window. If I also bind "Escape" in the IDE settings to Ctrl+J, it does work to close the completion popup, but I have to press it twice to then also leave insert mode.
    I've searched around a bit and found e.g. https://youtrack.jetbrains.com/issue/VIM-1325 but supposedly this was fixed a long time ago. Ctrl+J is also set to be handled by vim in the IDE settings. Pressing the actual Escape key does work to both close the popup and exit insert mode.
    Any ideas what might be causing this or how to configure it to work?
    Thomas Boby
    @tboby
    Rider keeps randomly soft-locking when I use IdeaVim in git diff windows. Once it happens I usually can't close Rider, change editor tab nor enter any text. The UI visually appears to work, but no text can be edited and many commands fail. Disabling "Vim Emulator" doesn't fix the problem. I reported it here: https://youtrack.jetbrains.com/issue/RIDER-62264 but I suspect it hasn't been triaged to the right team.
    Does anybody else run into this problem and/or know any workarounds to stop it occurring?
    9 replies
    Claude
    @claude-paystack
    Hi there :) Since the most recent update to IdeaVim, it doesn't want to init/load. I had a look in the IntelliJ logs and it said it couldn't grok the config (.ideavimrc). I commented out everything and went line by line, uncommenting and sourcing the config in the IDE - and everything worked :/ My question is, is there any other place I could get more detailed logs as to the the issue, and does anyone have any advice on where to start debugging this issue please?
    14 replies
    arvin
    @839891627
    image.png
    image.png
    furoxr
    @furoxr
    Hi~ I have a question, can i use vimscript functions in .ideavimrc like getpos, getline and so on?
    1 reply
    Ariel Viera
    @avierax
    hi guys, how can I activate argtextobj in ideavim
    3 replies
    it doesn't seem to work for me out of the box
    Ariel Viera
    @avierax
    image.png
    1 reply
    Im struggling to understand the previous line
    Ariel Viera
    @avierax
    is there a way to use Ctrl+N and Ctrl+P for the refactoring menu in intellij
    so far I can only use ctrl+n and ctrl+p for the completion meny, but for any other context menu they are not recognized
    Ariel Viera
    @avierax
    image.png
    e.g.
    I cannot use Ctrl+{N/P} for selecting things in this menu. Forcing me to move my right hand to the arrow keys.
    1 reply
    Gordon Child
    @gordolio

    Hello, I would like to create a custom command in my .ideavimrc. How can I find the list of menu commands that are supported. In Vim I have a :Tidy command that reformats files. In my .ideavimrc I have

    command! Tidy action ReformatFile

    When I enter :Tidy, the status bar indicates

    VIM - Action not found: ReformatFile
    Looks like there's a gist with a list of everything... https://gist.github.com/zchee/9c78f91cc5ad771c1f5d
    1 reply
    Gordon Child
    @gordolio
    The action was ShowReformatFileDialog, but more appropriate action is ReformatCode