ZIm/crates/vim/src
Kirill Bulatov f106dfca42
Avoid unnecessary DB writes (#29417)
Part of https://github.com/zed-industries/zed/issues/16472

* Adds debug logging to everywhere near INSERT/UPDATEs in the DB

So something like 
`env RUST_LOG=debug,wasmtime_cranelift=off,cranelift_codegen=off,vte=off
cargo run` could be used to view these (current zlog seems to process
the exclusions odd, so not sure this is the optimal RUST_LOG line) can
be used to debug any further writes.

* Removes excessive window stack serialization

Previously, it serialized unconditionally every 100ms.
Now, only if the stack had changed, which is now check every 500ms.

* Removes excessive terminal serialization

Previously, it serialized its `cwd` on every `ItemEvent::UpdateTab`
which was caused by e.g. any character output.
Now, only if the `cwd` has changed at the next event processing time.

Release Notes:

- Fixed more excessive DB writes
2025-04-25 17:41:49 +03:00
..
digraph Add Vim digraphs (#14887) 2024-07-28 22:44:32 -06:00
normal vim: Change line up and change line down respect indentation (#28934) 2025-04-17 20:51:24 -06:00
test vim: Add some forced motion support (#27991) 2025-04-11 11:12:30 -06:00
change_list.rs Add a way to navigate between changes (#28891) 2025-04-16 14:09:17 -06:00
command.rs Highlight merge conflicts and provide for resolving them (#28065) 2025-04-23 12:38:46 -04:00
digraph.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
helix.rs Temporarily disable helix tests (#28279) 2025-04-07 21:50:35 +00:00
indent.rs vim: Add some forced motion support (#27991) 2025-04-11 11:12:30 -06:00
insert.rs vim: Add some forced motion support (#27991) 2025-04-11 11:12:30 -06:00
mode_indicator.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
motion.rs vim: Add some forced motion support (#27991) 2025-04-11 11:12:30 -06:00
normal.rs vim: Add some forced motion support (#27991) 2025-04-11 11:12:30 -06:00
object.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
replace.rs vim: Add some forced motion support (#27991) 2025-04-11 11:12:30 -06:00
rewrap.rs vim: Add some forced motion support (#27991) 2025-04-11 11:12:30 -06:00
state.rs Avoid unnecessary DB writes (#29417) 2025-04-25 17:41:49 +03:00
surrounds.rs vim: Add some forced motion support (#27991) 2025-04-11 11:12:30 -06:00
test.rs editor: Refactor EditorMode::Full (#28546) 2025-04-10 23:22:27 +00:00
vim.rs VSCode Settings import (#29018) 2025-04-23 20:54:09 +00:00
visual.rs Fix panic in vim selection restoration (#29251) 2025-04-22 22:28:13 -06:00