API on_state for Vim Mode change of statusbar
See original GitHub issuehttps://github.com/CudaText-addons/cuda_vim_mode/pull/33
I checked that on_state is fired when ALL statusbar cells are inited. this code always shows ‘info-here: True’.
def on_state(self, ed_self, state):
if state==APPSTATE_CONFIG_REREAD:
h = app_proc(PROC_GET_MAIN_STATUSBAR, '')
index = statusbar_proc(h, STATUSBAR_FIND_CELL, value=20)
print('cfg reread,', 'info-here:', index is not None)
so why do you need to check that statusbar is fully inited? it must by fully inited always if you get APPSTATE_CONFIG_REREAD
Issue Analytics
- State:
- Created 10 months ago
- Comments:19 (19 by maintainers)
Top Results From Across the Web
Change status bar color based on mode · Issue #1056 - GitHub
Change status bar color based on mode #1056 ... thing I'm missing most in switching from Vim is the color-indicated mode bar from...
Read more >How to display current mode IdeaVIM is in? - Stack Overflow
I would like to see which Vim mode I am currently in while using IdeaVIM in PyCharm, or any other JetBrains IDE.
Read more >statusbar react native Code Example - Code Grepper
<StatusBar animated={true} backgroundColor="#fff" barStyle="dark-content" /> ... react native status bar mode · react native api status bar · react native ...
Read more >modes not showing in status bar of vim - Unix StackExchange
I installed vim version 7.4.1689 in my linux mint 18. I opened any file with vim but after switching between modes on the...
Read more >Dell EMC OpenManage Network Manager User Guide 6.5.2
Bringing a VIM Under Management . ... load map APIs in secure SSL mode. ... When this event occurs, the portal status bar...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
try without my patch: if you make vim mode persistent and restart Cud, you will see that statusbar is not fully painted in vim-mode color, but vim-mode is enabled. even on “session loaded” event statusbar is not ready yet. at least on my OS (Windows).
APPSTATE_CONFIG_REREAD is not happening on start. (is it happening on linux?) APPSTATE_API_SUBCOMMANDS is happening on start (not on clean Сud though)
we need some event that will occur on start but when all is settled. so we can paint all statusbar cells on startup.
ok