4coder»Forums
Jeremiah Goerdt
208 posts / 1 project
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
[Help Request] - Calling a Function on View Change
My bindings aren't staying the same across view/panel changes. I tried iterating over all views and setting their binding, but no dice.

How can I get my keybindings to persist across view/panel changes?
Allen Webster
476 posts / 6 projects
Heyo
[Help Request] - Calling a Function on View Change
Bindings aren't really assigned per view, they are assigned per buffer. So what you need to do is add something to the file loading hook that sets the map of every file that gets opened.