marta-file-manager / marta-issues

An issue tracker for Marta File Manager.
https://marta.yanex.org/
329 stars 0 forks source link

api: do tabs have unique ids that don't change when a tab's position changes? #970

Closed eugenesvk closed 1 year ago

eugenesvk commented 1 year ago

I was trying to tweak a function that closes duplicate tabs and bumped into https://github.com/marta-file-manager/marta-issues/issues/969, so was wondering: is there a way to get a permanent unique tab's id that doesn't change when tab's position changes?

page-down commented 1 year ago

... get a permanent unique tab's id ...

In the Marta API, the so-called tab is actually a PaneContext, so the unique ID is its id property.

https://marta.sh/api/marta/panecontext.type/id/