Comments (6)
Thank for your useful feedback. I'll make sure to correct the wrong behaviour you mention.
-
Indeed, I very rarely use the undo for some reason in vim. Thus I wasn't aware that it saved modifications every time your exit insert mode. I pushed a commit which should modify the behaviour. Hopefully it works.
I didn't encounter bugs for line delete, maybe could you provide a reproducible example? Then I could see what's wrong. -
I'm not sure but I think this bug is only present if you're using Neovim v0.4. With 0.5, it should put the correct filetype automatically. I might be wrong and should probably look more into it.
from instant.nvim.
I uploaded a small video recording of my problems. This is from just a couple of minutes ago, and I updated to the new commit that you just pushed. It seems like I can't undo at all now after the most recent commit.
Screen.Recording.2021-03-05.at.20.30.08-2.mov
from instant.nvim.
The video was very helpful to debug the issue. I further narrowed down the issue to an error when the first line is restored. Hopefully the last commit will fix the issue. I probably suspect it was also the issue that you mentionned with deleting a line on a previous post.
from instant.nvim.
Just tested the new commit, and the undo seems to be fixed when it comes to deleting lines. However it still seems to not behave correctly when I try to undo a line I just typed in. If I opened the same file as on the video and tries to type in the same as on the video, something strange is happening when I try to undo this. It manage to delete some characters, but then add some others. Then it suddenly shifts up a line, just as if I pressed J for join. I tried to undo a printf("testing");
under the print of hello world, and when I received the message "Already at oldest change" it looked like this:
printf("Hello World!");rippprprinritntrfint")
from instant.nvim.
Hopefully this will fix the issue. I tested on my machine before committing and didn't find any wrong behaviour. I also added an automatic filetype detect
which will trigger when a client receives buffer content from the buffer. This should fix the filetype issue.
from instant.nvim.
Thank you! In my small testing right now it seems to have fixed both issues. Closing this now!
from instant.nvim.
Related Issues (20)
- Host's buffer gets cleared when client connects HOT 6
- When starting server it doesn't need args but joining session errors HOT 1
- Cannot use Instant.vim on SpaceVim - Unknown function: instant#StartServerWrapper HOT 6
- Any way to customize with colors HOT 4
- Attempt to get length of local 'iptable' (a nil value) HOT 6
- Error executing vim.schedule lua callback: ...im/plugged/instant.nvim/lua/instant/websocket_client.lua:92: There was an error during connection: ETIMEDOUT HOT 3
- Can't deploy a server using ngrok on Windows HOT 8
- Enhancement: Use extmark instead of deprecated virtual text. HOT 1
- Sync BufferWrites across clients
- Is there or ir possible to make a cross editor solution? HOT 2
- Is it possible to attach lsp to all clients buffer? HOT 1
- Buffer opened by other clients are marked as modified HOT 2
- How to deal with jump server? HOT 1
- Self standing server in a Docker container feature request HOT 1
- Doesn't work in neovim 0.4.4 HOT 3
- Cursor highlights HOT 1
- Wiki does not have a Deploy a Server page
- Any hope for a visual code compatibility ? HOT 1
- InstantStartSession always caueses ECONNREFUSED. Tried different hosts and ports. Tried disabling firewall. HOT 2
- Edits from client not appearing on server HOT 5
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 instant.nvim.