Skip to content

Code running when hitting enter in neo-tree's file tree #129

Description

@mathiaslovnes

Hi! I've encountered a small, though annoying bug.

So, we have these binds:

nnoremap <cr> :call jukit#send#line()<cr>
vnoremap <cr> :<C-U>call jukit#send#selection()<cr>

which usually work just fine. However, when I open my file-tree from neo-tree, and then switch windows using hjkl and then switch back to the file tree, and I hit enter to open a folder, jukit runs the last cell or visually selected block of code I ran. Hitting enter here does not also open the folder.

If I toggle the file-tree and open it again, enter works as expected - It's only when I open it, switch to the buffer with the code, then back, that this happens.

Any suggestions? Help is much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions