Comments (13)
@josevalim since most editors do that, it definitely doesn't hurt to have that and if it helps then even better!
from livebook.
Which Livebook version? If you haven't tried main, please do, VIM support has been rewritten.
from livebook.
I'm recent as of March 1
from livebook.
just updated to lastest main
and the behavior is still identical
from livebook.
@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.
@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.
@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.
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.
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:
the first is in edit mode, the 2nd is livebook navigation mode. Very tricky to differntiate
from livebook.
Note that the cursor for non-vim is even less noticeable. The intended indicator is in bottom-right:
"ins" means editor is focused (Livebook insert mode), not vim-insert mode :D
from livebook.
what if we slightly highlight the current line? as in most editors?
from livebook.
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.
Closing this one for now, we will see how the active line will feel in practice.
from livebook.
Related Issues (20)
- `nil` autosave location causes option to be missing from HTML on Settings and notebooks are not saved. HOT 4
- Problem with `lb:*` cookies HOT 2
- ImageComponent crashes livebook if passed non-binary `contents` HOT 1
- Race condition on smart cell evaluation HOT 1
- Store app password in stamp encrypted data HOT 4
- Information loss with current variable name binding model (JSON -> Json) HOT 6
- Crash on Windows when trying to save file if a nearby filename contains an emoji HOT 3
- Livebook not working on window 10 HOT 2
- Livebook cannot connect to the default runtime HOT 20
- Deployed apps don't reevaluate cells marked as 'Reevaluates automatically' HOT 6
- Support epmdless runtimes HOT 1
- Cannot drop files on Safari
- Add two options to xlsx_reader? One to skip empty sheets and another to nillify expect_chars? HOT 4
- Revisit teleport integration
- Node terminated unexpectedly HOT 14
- Fix asset cache URL on distributed deployments
- mix escript.install hex livebook (cannot run livebook after) HOT 3
- Request to Acknowledge Uffizzi's Contributions in README HOT 5
- Livebook will not open; due to error during startup HOT 3
- Support Fly for zero-trust authentication HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livebook.