Coder Social home page Coder Social logo

Comments (13)

jonatanklosko avatar jonatanklosko commented on June 1, 2024 2

@josevalim since most editors do that, it definitely doesn't hurt to have that and if it helps then even better!

from livebook.

josevalim avatar josevalim commented on June 1, 2024

Which Livebook version? If you haven't tried main, please do, VIM support has been rewritten.

from livebook.

bcardarella avatar bcardarella commented on June 1, 2024

I'm recent as of March 1

from livebook.

bcardarella avatar bcardarella commented on June 1, 2024

just updated to lastest main and the behavior is still identical

from livebook.

jonatanklosko avatar jonatanklosko commented on June 1, 2024

@bcardarella I'm probably missing something, could you clarify the steps? When I enter visual mode with v, select something and hit esc, it gets back to vim navigation mode for me.

from livebook.

bcardarella avatar bcardarella commented on June 1, 2024

@jonatanklosko the issue is not with switching between visual mode and insert mode. The issue is hitting esc again and the focus is now no longer on the editor but on the livebook itself. So you can navigate between the cells. So hitting esc by mistake happens frequently.

from livebook.

josevalim avatar josevalim commented on June 1, 2024

@bcardarella oh, I see. Honestly, I would be a pity to change that. I hit escape all the time to swap between Livebook navigation and cell editing. Perhaps what needs to change is to have a clearer indicator of which type of mode we are?

from livebook.

jonatanklosko avatar jonatanklosko commented on June 1, 2024

Ah, so it's rather about switching from vim navigation mode to livebook navigation mode, that's been the intended behaviour so far.

We only have that small "ins" indicator in the bottom-right, though for vim there is the red caret, so it's a bit more distinctive. But I don't think the indicator should be massive, because it could be too distracting when switching between the modes.

One thing we could do is to have a setting where escaping the cell editor takes double esc. I'm not entirely convinced, but that's the best idea I have so far. @bcardarella did you have any specific setting in mind?

from livebook.

bcardarella avatar bcardarella commented on June 1, 2024

yeah I figured it was intended behavior, if there was room for a custom setting to override that would be nice. But even just having a better visual indication. Because right now here is the difference between the two modes:

Screenshot 2024-03-05 at 4 46 55 PM Screenshot 2024-03-05 at 4 47 01 PM

the first is in edit mode, the 2nd is livebook navigation mode. Very tricky to differntiate

from livebook.

jonatanklosko avatar jonatanklosko commented on June 1, 2024

Note that the cursor for non-vim is even less noticeable. The intended indicator is in bottom-right:

image

"ins" means editor is focused (Livebook insert mode), not vim-insert mode :D

from livebook.

josevalim avatar josevalim commented on June 1, 2024

what if we slightly highlight the current line? as in most editors?

Screenshot 2024-03-05 at 11 20 38

from livebook.

bcardarella avatar bcardarella commented on June 1, 2024

That could work but I wouldn't be able to say for certain until I play with it. But I don't want to send you all down on whack-a-moles on different solutions. AFAIK I'm the first to raise this concern so it may not make sense to just solve this for me.

from livebook.

josevalim avatar josevalim commented on June 1, 2024

Closing this one for now, we will see how the active line will feel in practice.

from livebook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.