Skip to content

Unable to use gitsessions within tmux #19

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

Open
wting opened this issue Sep 6, 2018 · 1 comment
Open

Unable to use gitsessions within tmux #19

wting opened this issue Sep 6, 2018 · 1 comment
Labels
bug needs-info Needs more info (aka waiting on OP).

Comments

@wting
Copy link
Owner

wting commented Sep 6, 2018

@olbrew: Porting this issue from #15.

  1. When saving form inside a Tmux session the session file gets a faulty name. In my case: ?Ptmux\;\e\e\]50\;CursorShape=0\cg\emaster. The contents of the file look good but it cannot be loaded afterwards because of the faulty filename.

I think a hashing strategy would fix or avoid some of these errors and also avoid some of the overhead of creating all the shadow directories in the sessions dir.
For example:

if git:
    session_string = fully_qualified_path + git_branch_name
else:
    session_string = fully_qualified_path

session_hash = hash(unique_session_string)

function save(session_hash):
    write(sessions_dir/session_has.vim)

function restore(session_hash):
    read(sessions_dir/session_has.vim)

What do you think? I don't know if this is even possible in viml but I think this would definitely solve some problems.

@wting
Copy link
Owner Author

wting commented Sep 6, 2018

tmux

I was unable to reproduce this with tmux 2.7 and vim 8.0 on OSX.

@olbrew: What setup are you using? Can you reproduce within vim instead of neovim?

@wting wting added the needs-info Needs more info (aka waiting on OP). label Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs-info Needs more info (aka waiting on OP).
Projects
None yet
Development

No branches or pull requests

1 participant