Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for more panes #13

Open
wl-stepp opened this issue Mar 17, 2021 · 0 comments
Open

Support for more panes #13

wl-stepp opened this issue Mar 17, 2021 · 0 comments

Comments

@wl-stepp
Copy link

Thank you for the great plugin!

I am using fman with four panes by setting them in the Sessions.json and wanted to use the favorites feature. So I made some small changes to the code to allow for more panes to be stored:
When setting the favorite pair

for i in range(len(panes)):
    dirName = shortenDirPath(panes[i].get_path())
    favEntry = favEntry + "|" + dirName 

When retrieving it:

favName, *favPaths = dirTuple.strip().split('|')
if favName == dirName:
    i = 0
    for fav in favPaths:
        if '://' in fav:
            newPath = expandDirPath(fav)
            panes[i].set_path(newPath)
        else:
            newPath = as_url(expandDirPath(fav))
            panes[i].set_path(newPath)
        i = i + 1

In case you want to consider implementing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant