question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API on_state for Vim Mode change of statusbar

See original GitHub issue

@veksha

https://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:closed
  • Created 10 months ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
vekshacommented, Nov 14, 2022

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.

0reactions
vekshacommented, Nov 14, 2022

ok

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found