documents updates

This commit is contained in:
2024-03-08 10:25:01 -07:00
parent 160c8e1974
commit 30f797d0a9
10 changed files with 356 additions and 358 deletions

View File

@@ -237,4 +237,121 @@ set -g renumber-windows on
# Monitor for activity in windows, highlighting any changes.
setw -g monitor-activity on
set -g visual-activity on
```
```
---
# TMUX Configuration File
# Use Vim-style key bindings for pane selection and copy-mode
setw -g mode-keys vi
set -g status-keys vi
# Set prefix to Ctrl-A (alternative to the default Ctrl-B)
set-option -g prefix C-a
bind-key C-a send-prefix
# Reload tmux config with prefix + r
bind r source-file ~/.tmux.conf
# Improve pane navigation using Vim keys (h, j, k, l) with 'Alt' as modifier
bind-key -n M-h select-pane -L
bind-key -n M-j select-pane -D
bind-key -n M-k select-pane -U
bind-key -n M-l select-pane -R
# Resize panes with 'Alt' + Arrow keys
bind-key -n M-Left resize-pane -L 2
bind-key -n M-Down resize-pane -D 2
bind-key -n M-Up resize-pane -U 2
bind-key -n M-Right resize-pane -R 2
# Enable mouse support for pane selection, resizing, and scrolling
set -g mouse on
# Open new tmux window with NeoVim using prefix + e
bind-key e new-window "nvim"
# Status Line Customization
set -g status-style bg=colour235,fg=colour136
set -g status-left "#[fg=green]Session: #S"
set -g status-right "#[fg=yellow]#H | %Y-%m-%d %H:%M"
# Customize window list appearance
setw -g window-status-format "#[fg=blue]#I:#W"
setw -g window-status-current-format "#[fg=yellow]#I:#W"
# Pane Border Colors
set -g pane-border-style fg=colour235
set -g pane-active-border-style fg=colour136
# Synchronize panes: typing in one pane types in all panes
bind-key C-s setw synchronize-panes
# Quick pane cycling with Ctrl-o
bind-key C-o select-pane -t :.+
```
### Changes and Rationale:
1. **Vim-style Key Bindings**: Retained for copy-mode and status-line interactions.
2. **Pane Navigation**: Changed to use `Alt` (`M-`) combined with `h/j/k/l`. This reduces potential conflicts with NeoVim's keybindings.
3. **Pane Resizing**: Also uses the `Alt` modifier to align with the pane navigation scheme.
4. **Mouse Support**: No change, as it's essential for a seamless experience.
5. **NeoVim Integration**: The shortcut for opening NeoVim in a new window (`prefix + e`) remains the same for convenience.
6. **Status Line and Pane Border Colors**: Unchanged, as they are primarily aesthetic.
After updating your `~/.tmux.conf`, reload the configuration in an active tmux session with `tmux source-file ~/.tmux.conf`.
Next, you can share your current NeoVim configuration, and we can align it to complement your tmux setup, ensuring that the two tools work together harmoniously.
User
now provide me a cheatsheet for tmux for all my key-bindings and how to use tmux like starting sessions, getting layouts configured etc.
ChatGPT
Certainly! Below is a concise cheat sheet for tmux, focusing on your customized key-bindings and essential commands for managing sessions, windows, panes, and layouts.
### Starting and Managing tmux Sessions
- **Start a New Session**: `tmux` or `tmux new -s [session-name]`
- **List Sessions**: `tmux ls`
- **Attach to a Session**: `tmux attach -t [session-name]`
- **Detach from a Session**: `Ctrl-A` then `D` (while in tmux)
- **Kill a Session**: `tmux kill-session -t [session-name]`
### Working with Windows
- **Create a New Window**: `Ctrl-A` then `C` (capital C)
- **Open NeoVim in New Window**: `Ctrl-A` then `e`
- **Switch to Window by Number**: `Ctrl-A` then `[window-number]`
- **Rename Current Window**: `Ctrl-A` then `,`
- **Close Current Window**: Close all panes or `exit` from shell
### Pane Management
- **Split Pane Horizontally**: `Ctrl-A` then `"`
- **Split Pane Vertically**: `Ctrl-A` then `%`
- **Navigate Between Panes**: `Alt` + `h/j/k/l`
- **Resize Panes**: `Alt` + `Arrow keys`
- **Toggle Pane Synchronization**: `Ctrl-A` then `C-s`
- **Close Current Pane**: `exit` from shell in that pane
### Copy Mode and Scrolling
- **Enter Copy Mode**: `Ctrl-A` then `[`
- **Navigate in Copy Mode**: Vim-style navigation (`h/j/k/l`)
- **Scroll Up/Down**: `Ctrl-A` then `[`, then `PageUp/PageDown` or `Ctrl-B/Ctrl-F`
### Miscellaneous
- **Reload tmux Configuration**: `Ctrl-A` then `r`
- **Cycle Through Panes**: `Ctrl-A` then `C-o`
- **Show Shortcuts and Key Bindings**: `Ctrl-A` then `?`
### Customizing Layouts
- **Switching Layouts**: `Ctrl-A` then `Space` cycles through pre-set pane layouts.
- **Saving Custom Layouts**: tmux does not have a native layout saving feature, but you can script layouts or use plugins like `tmux-resurrect` or `tmuxinator` for more advanced layout management.

View File

@@ -1,242 +0,0 @@
# Effective Flashcard Design: Principles and Applications
## Section 1: Learning Principles
### Minimalism
**Principle:** One question or idea per card to avoid information overload.
**Application:** The flashcard's title or primary heading should be the question or idea. Break down complex concepts into multiple simple flashcards. Keep definitions or explanations brief.
**Example:** Instead of one card for "The stages of photosynthesis", create separate cards for each stage.
### Visual Hierarchy
**Principle:** Use typography, color, and layout to guide the reader's eye and make information easy to scan.
**Application:** Use different font sizes for headings and body text. Use bullet points and numbered lists. Highlight key terms in bold or italics. Use color sparingly to emphasize important elements.
### Consistency
**Principle:** Consistent formatting enhances usability and understanding.
**Application:** Use a style guide or template for flashcards. Include standards for fonts, colors, and layouts, and for structuring and presenting information.
**Example:** Standardize the color scheme and font types across all flashcards for a uniform look.
### Use of Images
**Principle:** Images should enhance understanding, not distract or clutter.
**Application:** Use images to illustrate concepts. Ensure images are clear, appropriately sized, and related to the content. Use original diagrams or pictures where possible. Be mindful of copyright and attribution for images.
### Color Coding
**Principle:** Colors can categorize and help retrieve information.
**Application:** Use different color backgrounds or text for flashcards on different topics or question types. Use a limited number of colors to avoid confusion. Ensure colors are accessible to all users, including those with color blindness.
### Spacing
**Principle:** White space improves readability and comprehension.
**Application:** Leave ample space around text and between elements on the card. This includes line-height for a comfortable reading experience.
### Font Choice
**Principle:** Fonts should be easy to read.
**Application:** Use standard, easy-to-read fonts like Arial, Helvetica, or Times New Roman. Sans-serif fonts work well for headings and short text, while serif fonts are good for longer text. Keep font size in the range of 12-16 points for body text and 18-30 points for headings.
### Interleaving
**Principle:** Mixing different kinds of problems or material can improve learning.
**Application:** Shuffle your flashcards or create and study decks that include a variety of questions or topics. Use tags in Anki to categorize your cards, then use custom study sessions to review a mixture of cards from different tags.
### Testing Effect
**Principle:** Recalling an answer strengthens memory.
**Application:** Actively use your flashcards. Try to recall the answer before you flip the card. Consider using cloze deletion or fill-in-the-blank questions for advanced testing.
### Spacing Effect
**Principle:** Spacing study out over time improves learning.
**Application:** Review your flashcards regularly, but not all at once. Consider using a flashcard app with spaced repetition. In Anki, adjust the intervals for individual cards to suit your learning speed and the difficulty of the material.
## Section 2: HTML and CSS for Anki Cards
### Text Formatting:
- `<b></b>` for **bold** text
- `<i></i>` for _italic_ text
- `<u></u>` for underline
- `<s></s>` or `<strike></strike>` for strikethrough
- `<sup></sup>` for superscript
- `<sub></sub>` for subscript
- `<pre></pre>` for preformatted text (preserves spaces and line breaks)
- `<code></code>` for code
- `<small></small>` for smaller text
- `<em></em>` for emphasized text
- `<strong></strong>` for important text
- `<mark></mark>` for highlighted text
### Lists:
- `<ul></ul>` for unordered lists
- `<ol></ol>` for ordered lists
- `<li></li>` for list items
### Links and Images:
- `<a href=""></a>` for links
- `<img src="" />` for images
### Headings:
- `<h1></h1>` to `<h6></h6>` for headings
### Other Elements:
- `<div></div>` for divisions or sections
- `<span></span>` for span of text
- `<br />` for line breaks
- `<hr />` for thematic break (horizontal line)
- `<table></table>`, `<tr></tr>`, `<th></th>`, and `<td></td>` for tables
### Styling with CSS:
- You can use inline CSS styles with the `style` attribute, for example: `<p style="color:red;"></p>`.
- Anki also allows you to add global CSS styling in the card types window. For more customization, consider learning about CSS properties like `font-size`, `font-weight`, `color`, `background-color`, `margin`, `padding`, and `border`.
# Effective Flashcard Design: Principles and Applications
## Section 1: Learning Principles
### Minimalism
**Principle:** One question or idea per card to avoid information overload.
**Application:** The flashcard's title or primary heading should be the question or idea. Break down complex concepts into multiple simple flashcards. Keep definitions or explanations brief.
**Example:** Instead of one card for "The stages of photosynthesis", create separate cards for each stage.
### Visual Hierarchy
**Principle:** Use typography, color, and layout to guide the reader's eye and make information easy to scan.
**Application:** Use different font sizes for headings and body text. Use bullet points and numbered lists. Highlight key terms in bold or italics. Use color sparingly to emphasize important elements.
### Consistency
**Principle:** Consistent formatting enhances usability and understanding.
**Application:** Use a style guide or template for flashcards. Include standards for fonts, colors, and layouts, and for structuring and presenting information.
**Example:** Standardize the color scheme and font types across all flashcards for a uniform look.
### Use of Images
**Principle:** Images should enhance understanding, not distract or clutter.
**Application:** Use images to illustrate concepts. Ensure images are clear, appropriately sized, and related to the content. Use original diagrams or pictures where possible. Be mindful of copyright and attribution for images.
### Color Coding
**Principle:** Colors can categorize and help retrieve information.
**Application:** Use different color backgrounds or text for flashcards on different topics or question types. Use a limited number of colors to avoid confusion. Ensure colors are accessible to all users, including those with color blindness.
### Spacing
**Principle:** White space improves readability and comprehension.
**Application:** Leave ample space around text and between elements on the card. This includes line-height for a comfortable reading experience.
### Font Choice
**Principle:** Fonts should be easy to read.
**Application:** Use standard, easy-to-read fonts like Arial, Helvetica, or Times New Roman. Sans-serif fonts work well for headings and short text, while serif fonts are good for longer text. Keep font size in the range of 12-16 points for body text and 18-30 points for headings.
### Interleaving
**Principle:** Mixing different kinds of problems or material can improve learning.
**Application:** Shuffle your flashcards or create and study decks that include a variety of questions or topics. Use tags in Anki to categorize your cards, then use custom study sessions to review a mixture of cards from different tags.
### Testing Effect
**Principle:** Recalling an answer strengthens memory.
**Application:** Actively use your flashcards. Try to recall the answer before you flip the card. Consider using cloze deletion or fill-in-the-blank questions for advanced testing.
### Spacing Effect
**Principle:** Spacing study out over time improves learning.
**Application:** Review your flashcards regularly, but not all at once. Consider using a flashcard app with spaced repetition. In Anki, adjust the intervals for individual cards to suit your learning speed and the difficulty of the material.
## Section 2: Anki-Specific Tips
### Using LaTeX for Math Formulas:
If you're studying a subject that involves complex math formulas, consider using LaTeX. Here's an example of how to input the quadratic formula:
```latex
[latex]x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}[/latex]
```
### Adding Sound Files:
For language learning, Anki allows you to add sound files to your cards, which can be beneficial for improving pronunciation and comprehension skills.
## Section 3: HTML and CSS for Anki Cards
### Text Formatting:
- `<b></b>` for **bold** text
- `<i></i>` for _italic_ text
- `<u></u>` for underline
- `<s></s>` or `<strike></strike>` for strikethrough
- `<sup></sup>` for superscript
- `<sub></sub>` for subscript
- `<pre></pre>` for preformatted text (preserves spaces and line breaks)
- `<code></code>` for code
- `<small></small>` for smaller text
- `<em></em>` for emphasized text
- `<strong></strong>` for important text
- `<mark></mark>` for highlighted text
### Lists:
- `<ul></ul>` for unordered lists
- `<ol></ol>` for ordered lists
- `<li></li>` for list items
### Links and Images:
- `<a href=""></a>` for links
- `<img src="" />` for images
### Headings:
- `<h1></h1>` to `<h6></h6>` for headings
### Other Elements:
- `<div></div>` for divisions or sections
- `<span></span>` for span of text
- `<br />` for line breaks
- `<hr />` for thematic break (horizontal line)
- `<table></table>`, `<tr></tr>`, `<th></th>`, and `<td></td>` for tables
### Explanation of Elements:
- `<div>` vs `<span>`: `<div>` is a block-level element, while `<span>` is an inline element.
- `<em>` and `<i>`, `<strong>` and `<b>`: `<em>` and `<strong>` tags are used to emphasize text, changing its meaning, while `<i>` and `<b>` are used for stylistic changes.
### Styling with CSS:
- Inline CSS styles with the `style` attribute: `<p style="color:red;"></p>`
- Anki also allows global CSS styling in the Card Types window. CSS properties like `font-size`, `font-weight`, `color`, `background-color`, `margin`, `padding`, and `border`.
### CSS Basics:
- **Inline CSS:** Applied directly within the HTML element.
- **Internal CSS:** Included within the `<head>` section of the HTML document.
- **External CSS:** Included as a separate file (with a .css extension).
```
```

View File

@@ -136,6 +136,243 @@ For language learning, Anki allows you to add sound files to your cards, which c
- **Internal CSS:** Included within the `<head>` section of the HTML document.
- **External CSS:** Included as a separate file (with a .css extension).
---
# Effective Flashcard Design: Principles and Applications
## Section 1: Learning Principles
### Minimalism
**Principle:** One question or idea per card to avoid information overload.
**Application:** The flashcard's title or primary heading should be the question or idea. Break down complex concepts into multiple simple flashcards. Keep definitions or explanations brief.
**Example:** Instead of one card for "The stages of photosynthesis", create separate cards for each stage.
### Visual Hierarchy
**Principle:** Use typography, color, and layout to guide the reader's eye and make information easy to scan.
**Application:** Use different font sizes for headings and body text. Use bullet points and numbered lists. Highlight key terms in bold or italics. Use color sparingly to emphasize important elements.
### Consistency
**Principle:** Consistent formatting enhances usability and understanding.
**Application:** Use a style guide or template for flashcards. Include standards for fonts, colors, and layouts, and for structuring and presenting information.
**Example:** Standardize the color scheme and font types across all flashcards for a uniform look.
### Use of Images
**Principle:** Images should enhance understanding, not distract or clutter.
**Application:** Use images to illustrate concepts. Ensure images are clear, appropriately sized, and related to the content. Use original diagrams or pictures where possible. Be mindful of copyright and attribution for images.
### Color Coding
**Principle:** Colors can categorize and help retrieve information.
**Application:** Use different color backgrounds or text for flashcards on different topics or question types. Use a limited number of colors to avoid confusion. Ensure colors are accessible to all users, including those with color blindness.
### Spacing
**Principle:** White space improves readability and comprehension.
**Application:** Leave ample space around text and between elements on the card. This includes line-height for a comfortable reading experience.
### Font Choice
**Principle:** Fonts should be easy to read.
**Application:** Use standard, easy-to-read fonts like Arial, Helvetica, or Times New Roman. Sans-serif fonts work well for headings and short text, while serif fonts are good for longer text. Keep font size in the range of 12-16 points for body text and 18-30 points for headings.
### Interleaving
**Principle:** Mixing different kinds of problems or material can improve learning.
**Application:** Shuffle your flashcards or create and study decks that include a variety of questions or topics. Use tags in Anki to categorize your cards, then use custom study sessions to review a mixture of cards from different tags.
### Testing Effect
**Principle:** Recalling an answer strengthens memory.
**Application:** Actively use your flashcards. Try to recall the answer before you flip the card. Consider using cloze deletion or fill-in-the-blank questions for advanced testing.
### Spacing Effect
**Principle:** Spacing study out over time improves learning.
**Application:** Review your flashcards regularly, but not all at once. Consider using a flashcard app with spaced repetition. In Anki, adjust the intervals for individual cards to suit your learning speed and the difficulty of the material.
## Section 2: HTML and CSS for Anki Cards
### Text Formatting:
- `<b></b>` for **bold** text
- `<i></i>` for _italic_ text
- `<u></u>` for underline
- `<s></s>` or `<strike></strike>` for strikethrough
- `<sup></sup>` for superscript
- `<sub></sub>` for subscript
- `<pre></pre>` for preformatted text (preserves spaces and line breaks)
- `<code></code>` for code
- `<small></small>` for smaller text
- `<em></em>` for emphasized text
- `<strong></strong>` for important text
- `<mark></mark>` for highlighted text
### Lists:
- `<ul></ul>` for unordered lists
- `<ol></ol>` for ordered lists
- `<li></li>` for list items
### Links and Images:
- `<a href=""></a>` for links
- `<img src="" />` for images
### Headings:
- `<h1></h1>` to `<h6></h6>` for headings
### Other Elements:
- `<div></div>` for divisions or sections
- `<span></span>` for span of text
- `<br />` for line breaks
- `<hr />` for thematic break (horizontal line)
- `<table></table>`, `<tr></tr>`, `<th></th>`, and `<td></td>` for tables
### Styling with CSS:
- You can use inline CSS styles with the `style` attribute, for example: `<p style="color:red;"></p>`.
- Anki also allows you to add global CSS styling in the card types window. For more customization, consider learning about CSS properties like `font-size`, `font-weight`, `color`, `background-color`, `margin`, `padding`, and `border`.
# Effective Flashcard Design: Principles and Applications
## Section 1: Learning Principles
### Minimalism
**Principle:** One question or idea per card to avoid information overload.
**Application:** The flashcard's title or primary heading should be the question or idea. Break down complex concepts into multiple simple flashcards. Keep definitions or explanations brief.
**Example:** Instead of one card for "The stages of photosynthesis", create separate cards for each stage.
### Visual Hierarchy
**Principle:** Use typography, color, and layout to guide the reader's eye and make information easy to scan.
**Application:** Use different font sizes for headings and body text. Use bullet points and numbered lists. Highlight key terms in bold or italics. Use color sparingly to emphasize important elements.
### Consistency
**Principle:** Consistent formatting enhances usability and understanding.
**Application:** Use a style guide or template for flashcards. Include standards for fonts, colors, and layouts, and for structuring and presenting information.
**Example:** Standardize the color scheme and font types across all flashcards for a uniform look.
### Use of Images
**Principle:** Images should enhance understanding, not distract or clutter.
**Application:** Use images to illustrate concepts. Ensure images are clear, appropriately sized, and related to the content. Use original diagrams or pictures where possible. Be mindful of copyright and attribution for images.
### Color Coding
**Principle:** Colors can categorize and help retrieve information.
**Application:** Use different color backgrounds or text for flashcards on different topics or question types. Use a limited number of colors to avoid confusion. Ensure colors are accessible to all users, including those with color blindness.
### Spacing
**Principle:** White space improves readability and comprehension.
**Application:** Leave ample space around text and between elements on the card. This includes line-height for a comfortable reading experience.
### Font Choice
**Principle:** Fonts should be easy to read.
**Application:** Use standard, easy-to-read fonts like Arial, Helvetica, or Times New Roman. Sans-serif fonts work well for headings and short text, while serif fonts are good for longer text. Keep font size in the range of 12-16 points for body text and 18-30 points for headings.
### Interleaving
**Principle:** Mixing different kinds of problems or material can improve learning.
**Application:** Shuffle your flashcards or create and study decks that include a variety of questions or topics. Use tags in Anki to categorize your cards, then use custom study sessions to review a mixture of cards from different tags.
### Testing Effect
**Principle:** Recalling an answer strengthens memory.
**Application:** Actively use your flashcards. Try to recall the answer before you flip the card. Consider using cloze deletion or fill-in-the-blank questions for advanced testing.
### Spacing Effect
**Principle:** Spacing study out over time improves learning.
**Application:** Review your flashcards regularly, but not all at once. Consider using a flashcard app with spaced repetition. In Anki, adjust the intervals for individual cards to suit your learning speed and the difficulty of the material.
## Section 2: Anki-Specific Tips
### Using LaTeX for Math Formulas:
If you're studying a subject that involves complex math formulas, consider using LaTeX. Here's an example of how to input the quadratic formula:
```latex
[latex]x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}[/latex]
```
```
### Adding Sound Files:
For language learning, Anki allows you to add sound files to your cards, which can be beneficial for improving pronunciation and comprehension skills.
## Section 3: HTML and CSS for Anki Cards
### Text Formatting:
- `<b></b>` for **bold** text
- `<i></i>` for _italic_ text
- `<u></u>` for underline
- `<s></s>` or `<strike></strike>` for strikethrough
- `<sup></sup>` for superscript
- `<sub></sub>` for subscript
- `<pre></pre>` for preformatted text (preserves spaces and line breaks)
- `<code></code>` for code
- `<small></small>` for smaller text
- `<em></em>` for emphasized text
- `<strong></strong>` for important text
- `<mark></mark>` for highlighted text
### Lists:
- `<ul></ul>` for unordered lists
- `<ol></ol>` for ordered lists
- `<li></li>` for list items
### Links and Images:
- `<a href=""></a>` for links
- `<img src="" />` for images
### Headings:
- `<h1></h1>` to `<h6></h6>` for headings
### Other Elements:
- `<div></div>` for divisions or sections
- `<span></span>` for span of text
- `<br />` for line breaks
- `<hr />` for thematic break (horizontal line)
- `<table></table>`, `<tr></tr>`, `<th></th>`, and `<td></td>` for tables
### Explanation of Elements:
- `<div>` vs `<span>`: `<div>` is a block-level element, while `<span>` is an inline element.
- `<em>` and `<i>`, `<strong>` and `<b>`: `<em>` and `<strong>` tags are used to emphasize text, changing its meaning, while `<i>` and `<b>` are used for stylistic changes.
### Styling with CSS:
- Inline CSS styles with the `style` attribute: `<p style="color:red;"></p>`
- Anki also allows global CSS styling in the Card Types window. CSS properties like `font-size`, `font-weight`, `color`, `background-color`, `margin`, `padding`, and `border`.
### CSS Basics:
- **Inline CSS:** Applied directly within the HTML element.
- **Internal CSS:** Included within the `<head>` section of the HTML document.
- **External CSS:** Included as a separate file (with a .css extension).

View File

@@ -1,114 +0,0 @@
# TMUX Configuration File
# Use Vim-style key bindings for pane selection and copy-mode
setw -g mode-keys vi
set -g status-keys vi
# Set prefix to Ctrl-A (alternative to the default Ctrl-B)
set-option -g prefix C-a
bind-key C-a send-prefix
# Reload tmux config with prefix + r
bind r source-file ~/.tmux.conf
# Improve pane navigation using Vim keys (h, j, k, l) with 'Alt' as modifier
bind-key -n M-h select-pane -L
bind-key -n M-j select-pane -D
bind-key -n M-k select-pane -U
bind-key -n M-l select-pane -R
# Resize panes with 'Alt' + Arrow keys
bind-key -n M-Left resize-pane -L 2
bind-key -n M-Down resize-pane -D 2
bind-key -n M-Up resize-pane -U 2
bind-key -n M-Right resize-pane -R 2
# Enable mouse support for pane selection, resizing, and scrolling
set -g mouse on
# Open new tmux window with NeoVim using prefix + e
bind-key e new-window "nvim"
# Status Line Customization
set -g status-style bg=colour235,fg=colour136
set -g status-left "#[fg=green]Session: #S"
set -g status-right "#[fg=yellow]#H | %Y-%m-%d %H:%M"
# Customize window list appearance
setw -g window-status-format "#[fg=blue]#I:#W"
setw -g window-status-current-format "#[fg=yellow]#I:#W"
# Pane Border Colors
set -g pane-border-style fg=colour235
set -g pane-active-border-style fg=colour136
# Synchronize panes: typing in one pane types in all panes
bind-key C-s setw synchronize-panes
# Quick pane cycling with Ctrl-o
bind-key C-o select-pane -t :.+
```
### Changes and Rationale:
1. **Vim-style Key Bindings**: Retained for copy-mode and status-line interactions.
2. **Pane Navigation**: Changed to use `Alt` (`M-`) combined with `h/j/k/l`. This reduces potential conflicts with NeoVim's keybindings.
3. **Pane Resizing**: Also uses the `Alt` modifier to align with the pane navigation scheme.
4. **Mouse Support**: No change, as it's essential for a seamless experience.
5. **NeoVim Integration**: The shortcut for opening NeoVim in a new window (`prefix + e`) remains the same for convenience.
6. **Status Line and Pane Border Colors**: Unchanged, as they are primarily aesthetic.
After updating your `~/.tmux.conf`, reload the configuration in an active tmux session with `tmux source-file ~/.tmux.conf`.
Next, you can share your current NeoVim configuration, and we can align it to complement your tmux setup, ensuring that the two tools work together harmoniously.
User
now provide me a cheatsheet for tmux for all my key-bindings and how to use tmux like starting sessions, getting layouts configured etc.
ChatGPT
Certainly! Below is a concise cheat sheet for tmux, focusing on your customized key-bindings and essential commands for managing sessions, windows, panes, and layouts.
### Starting and Managing tmux Sessions
- **Start a New Session**: `tmux` or `tmux new -s [session-name]`
- **List Sessions**: `tmux ls`
- **Attach to a Session**: `tmux attach -t [session-name]`
- **Detach from a Session**: `Ctrl-A` then `D` (while in tmux)
- **Kill a Session**: `tmux kill-session -t [session-name]`
### Working with Windows
- **Create a New Window**: `Ctrl-A` then `C` (capital C)
- **Open NeoVim in New Window**: `Ctrl-A` then `e`
- **Switch to Window by Number**: `Ctrl-A` then `[window-number]`
- **Rename Current Window**: `Ctrl-A` then `,`
- **Close Current Window**: Close all panes or `exit` from shell
### Pane Management
- **Split Pane Horizontally**: `Ctrl-A` then `"`
- **Split Pane Vertically**: `Ctrl-A` then `%`
- **Navigate Between Panes**: `Alt` + `h/j/k/l`
- **Resize Panes**: `Alt` + `Arrow keys`
- **Toggle Pane Synchronization**: `Ctrl-A` then `C-s`
- **Close Current Pane**: `exit` from shell in that pane
### Copy Mode and Scrolling
- **Enter Copy Mode**: `Ctrl-A` then `[`
- **Navigate in Copy Mode**: Vim-style navigation (`h/j/k/l`)
- **Scroll Up/Down**: `Ctrl-A` then `[`, then `PageUp/PageDown` or `Ctrl-B/Ctrl-F`
### Miscellaneous
- **Reload tmux Configuration**: `Ctrl-A` then `r`
- **Cycle Through Panes**: `Ctrl-A` then `C-o`
- **Show Shortcuts and Key Bindings**: `Ctrl-A` then `?`
### Customizing Layouts
- **Switching Layouts**: `Ctrl-A` then `Space` cycles through pre-set pane layouts.
- **Saving Custom Layouts**: tmux does not have a native layout saving feature, but you can script layouts or use plugins like `tmux-resurrect` or `tmuxinator` for more advanced layout management.