-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add tmux clipboard yank bindings and LSP packages #795
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -89,8 +89,9 @@ bind-key "_" split-window -fv -c "#{pane_current_path}" | |||||||||
| bind-key "%" split-window -h -c "#{pane_current_path}" | ||||||||||
| bind-key '"' split-window -v -c "#{pane_current_path}" | ||||||||||
|
|
||||||||||
| # Capture full pane history to file | ||||||||||
| bind P capture-pane -S - \; save-buffer ~/tmux-history.txt \; delete-buffer \; display-message "Pane history saved to ~/tmux-history.txt" | ||||||||||
| # Yank pane history to clipboard | ||||||||||
| bind y run-shell 'tmux capture-pane -pS - | pbcopy && tmux display-message "Full pane history copied to clipboard"' | ||||||||||
| bind v run-shell 'tmux capture-pane -p | pbcopy && tmux display-message "Visible pane copied to clipboard"' | ||||||||||
|
Comment on lines
+93
to
+94
|
||||||||||
| bind y run-shell 'tmux capture-pane -pS - | pbcopy && tmux display-message "Full pane history copied to clipboard"' | |
| bind v run-shell 'tmux capture-pane -p | pbcopy && tmux display-message "Visible pane copied to clipboard"' | |
| bind y run-shell 'tmux capture-pane -pS - | sh -c "command -v pbcopy >/dev/null 2>&1 && pbcopy || xclip -selection clipboard" && tmux display-message "Full pane history copied to clipboard"' | |
| bind v run-shell 'tmux capture-pane -p | sh -c "command -v pbcopy >/dev/null 2>&1 && pbcopy || xclip -selection clipboard" && tmux display-message "Visible pane copied to clipboard"' |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -11,6 +11,9 @@ | |||||||
| # Desktop machines with GUI - default false, override in named-hosts | ||||||||
| isDesktop = false; | ||||||||
|
|
||||||||
| # Install language server packages | ||||||||
| isDev = true; | ||||||||
|
||||||||
| isDev = true; | |
| isLSP = true; | |
| isDev = isLSP; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of
pbcopymakes these bindings specific to macOS. To make your configuration more portable and work on Linux systems (both X11 and Wayland), you could use a shell fallback mechanism. Your Nix configuration already installsxclipandwl-clipboardfor Linux. This change will attempt to usepbcopyfirst (for macOS), thenwl-copy(for Wayland), and finallyxclip(for X11).