Initial Commit - tmux info

This is mostly getting tmux documentation in here, but some initial
setup to have this work.

There are broken links, as we don't have stuff for other parts of this
yet.
This commit is contained in:
Jigme Datse Yli-Rasku 2024-01-19 15:04:14 -08:00
parent 011ac0bc87
commit 6d8804310b
14 changed files with 369 additions and 0 deletions

View File

@ -0,0 +1,17 @@
---
# This will create the note in the "journal" subdirectory of the current workspace,
# regardless of which file is the active file.
type: daily-note
foam_template:
name: Daily Log
description: BuJo Daily Log
filepath: 'bullet/daily/$FOAM_DATE_YEAR-$FOAM_DATE_MONTH-$FOAM_DATE_DATE-$FOAM_TITLE.md'
---
# $FOAM_TITLE
* [ ] Migrate from \-1d
## Documentation
See [[BuJo Format]]

View File

@ -0,0 +1,10 @@
---
type: daily-note
# This will create the note in the "journal" subdirectory of the current workspace,
# regardless of which file is the active file.
foam_template:
filepath: 'journal/$FOAM_TITLE.md'
---
* [ ] Create Daily Log
* [ ] Migrate Daily Log

11
.foam/templates/docs.md Normal file
View File

@ -0,0 +1,11 @@
---
# This will create the note in the "journal" subdirectory of the current workspace,
# regardless of which file is the active file.
type: documentation
foam_template:
name: Documentation
description: Create New Documentation
filepath: 'docs/my-docs/$FOAM_TITLE.md'
---
# $FOAM_TITLE

View File

@ -0,0 +1,6 @@
---
# This will create the note in the "journal" subdirectory of the current workspace,
# regardless of which file is the active file.
foam_template:
filepath: 'journal/$FOAM_TITLE.md'
---

View File

@ -0,0 +1,9 @@
---
# This will create the note in the "journal" subdirectory of the current workspace,
# regardless of which file is the active file.
type: basic-note
foam_template:
name: Basic Note
description: Default Note Template
filepath: 'foam-notes/$FOAM_TITLE'
---

View File

@ -0,0 +1,25 @@
# Foam Note Templates
Foam includes note templates!
This allows you to easily create notes that have similar structure without having to use copy/paste :)
Templates support the [VS Code's Snippet Syntax](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax), which means you can:
- add variables to the newly created note
- add tabstop to automatically navigate to the key parts of the note, just like a form
Below you can see an example showing a todo list and a timestamp.
## Todo List
1. ${1:First tabstop}
2. ${2:A second tabstop}
3. ${3:A third tabstop}
Note Created: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}
---
Try out the above example by running the `Foam: Create New Note From Template` command and selecting the `your-first-template` template. Notice what happens when your new note is created!
To remove this template, simply delete the `.foam/templates/your-first-template.md` file.
Enjoy!

View File

@ -0,0 +1,13 @@
---
# This will create the note in the "journal" subdirectory of the current workspace,
# regardless of which file is the active file.
type: daily-note
---
# Starting Tech Guides
* [ ] Migrate from \-1d
## Documentation
See [[BuJo Format]]

View File

@ -0,0 +1,27 @@
---
# This will create the note in the "journal" subdirectory of the current workspace,
# regardless of which file is the active file.
type: documentation
---
# BuJo Format
This is sort of very losely based on Bullet Journals:
## Tasks
* [ ] To Do.
* [x] Done.
* [ ] ~~Irrelevant~~ (Abandoned)
* [ ] {Indicators} For indicators, See below.
## Indicators
* {>} Migrate next
* {<} Migrate "Up"
## Notes
* This is a short note.
* { } This note has an empty indicator.
* I have no idea what indicators I might use.

10
foam-notes/gdb Normal file
View File

@ -0,0 +1,10 @@
---
# This will create the note in the "journal" subdirectory of the current workspace,
# regardless of which file is the active file.
type: basic-note
---
# gdb
Just a debuging utility see [gdb](../gdb/index.md)

5
inbox.md Normal file
View File

@ -0,0 +1,5 @@
# Inbox
This is intended for brief notes that will need to go elsewhere...
[[gdb]] - need it (possibly) to sort out ffmpeg not playing mp4 files.

12
index.md Normal file
View File

@ -0,0 +1,12 @@
# Tech Guides
I think I'm going to go with mostly [Markdown](markdown), though may
convert some to [LaTeX](latex). I am currnetly workiong on guides for:
* [tmux](tmux/)
* [git](git/)
* [ssh](ssh/)
* [Foam Notes](foam/)
* [Markown](markdown/)
* [LaTeX](latex/)

8
journal/2024-01-18.md Normal file
View File

@ -0,0 +1,8 @@
---
type: daily-note
# This will create the note in the "journal" subdirectory of the current workspace,
# regardless of which file is the active file.
---
* [ ] Create Daily Log
* [ ] Migrate Daily Log

8
journal/2024-01-19.md Normal file
View File

@ -0,0 +1,8 @@
---
type: daily-note
# This will create the note in the "journal" subdirectory of the current workspace,
# regardless of which file is the active file.
---
* [ ] Create Daily Log
* [ ] Migrate Daily Log

208
tmux/index.md Normal file
View File

@ -0,0 +1,208 @@
# Tmux Guide
I think I want to have this more or less as I am starting to use tmux.
## Sections
* Starting
* Notes
* History
## Starting
### Start a new session
```
$ tmux
```
```
$ tmux new
```
```
$ tmux new-session
```
```
Ctrl-b :new
```
### Start new named session
```
$ tmux -s session-name
```
```
ctrl-b :new -s session-name
```
## Session Control
Stuff related to controlling sessions.
### List Sessions
```
$ tmux ls
```
```
$ tmux list-sessions
```
```
ctrl-b s
```
### Detach from Session
```
ctrl-b d
```
### Attach to Session
#### Attach to last session
```
$ tmux a
```
```
$ tmux at
```
```
$ tmux attach
```
```
$ tmux attach-session
```
#### Attach to Named Session
```
$ tmux a -t [session-name]
```
```
$ tmux at -t [session-name]
```
```
$ tmux attach -t [session-name]
```
```
$ tmux attach-session -t [session-name]
```
#### Rename Session
```
ctrl-b : rename-session [-t current-name] [new-name]
```
```
ctrl-b $
```
## Panes
Panes are how I've worked, apparently windows are another thing
### Switch Panes
#### Switch in arrow direction
```
ctrl-b up-arrow
```
```
ctrl-b down-arrow
```
```
ctrl-b right-arrow
```
```
ctrl-b left-arrow
```
#### Toggle Active Pane
```
ctrl-b ;
```
#### Split Window Horizontal
```
ctrl-b : split-window -h
```
```
ctrl-b %
```
#### Split Window Vertical
```
ctrl-b : split-window -v
```
```
ctrl-b "
```
#### Show Pane Numbers
```
ctrl-b q
```
#### Switch Pane by Number
```
ctrl-b q [pane number]
```
## Help
### List Keys
```
$ tmux list-keys
```
```
ctrl-b : list-keys
```
```
ctrl-b ?
```
## Info
### Show every session, window, pane et cetera
```
$ tmux info
```
## Notes
This currently is the stuff that I am most likely to need most often.
## History
* 2023-01-19 - Create File
* Create file with most of the basic functions...