Comments (2)
I tried looking at the code and I think action.Tab.SetActive
is used when setting which pane is active but the index of the pane in the tab (not ID) is passed. The index of a pane is returned when calling Tab.GetPane
and passing the ID.
action.MainTab
is micro.CurTab
in plugins, so I think the previous pane can be set as active in the plugin like this:
local micro = import("micro")
local tab = micro.CurTab()
tab:SetActive(tab:GetPane(SideBar.back_link:ID()))
from micro.
Yeah it works. Thanks! I also looked at code and saw that tab is usually used to set some pane bur overlooked GetPane
. Anyway the tab api is main facade for manipulating which pane is active but it isn't so obvious because each buffer also has function for setting active
from micro.
Related Issues (20)
- Child split pane is "lost" as a result of resizing its parent split pane HOT 5
- Tabmove duplicates tab when tab contains splits HOT 1
- micro shows previous mangled text when scrolling up after resizing the terminal HOT 9
- Proposal: Add relative window coordinates API HOT 4
- [question] Is this project still actively maintained? HOT 4
- Micro sometimes doesn't properly open HOT 10
- `-clean` option doesn't replace folders with proper files
- [BUG 100% reproducible] "invalid memory address or nil pointer dereference" when creating a non-existing file HOT 6
- `Clipboard erorr check` isn't after method that can cause it
- Is it possible to save file to stdin of another program? HOT 1
- Problems with key bindings (using KiTTY) HOT 3
- How to remove the background so it uses the configuration from the terminal? HOT 2
- Pressing `Down` when have "visual multiline selection" moves cursor to the second line of selection instead of end
- [Feature request]: autocomplete filetypes
- Help using func (*Buffer) FindNext HOT 2
- Help using WriteLog() function HOT 7
- Micro do not save file and reopen old file HOT 17
- Does log pane must have one instance? HOT 6
- Micro uses foot's `bright7` color instead of `default` listed in color scheme file HOT 11
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 micro.