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

Shortcut to open the last saved file in any editor #63

Open
cibinmathew opened this issue Nov 5, 2021 · 0 comments
Open

Shortcut to open the last saved file in any editor #63

cibinmathew opened this issue Nov 5, 2021 · 0 comments

Comments

@cibinmathew
Copy link

cibinmathew commented Nov 5, 2021

Feature Request

Make the saved filepath available for other commands so that it can be used to open them with user's choice editor. May be an environment variable like TMUX_LOGGING_LAST_SAVED_FILE can be added or some other option

main() {
if supported_tmux_version_ok; then
local file=$(expand_tmux_format_path "${save_complete_history_full_filename}")
local history_limit="$(tmux display-message -p -F "#{history_limit}")"
tmux capture-pane -J -S "-${history_limit}" -p > "${file}"
remove_empty_lines_from_end_of_file "${file}"
display_message "History saved to ${file}"
fi
}

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