Skip to content

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

Open
@cibinmathew

Description

@cibinmathew

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions