- Commit current changes
- Encrypted files
- Use git-encrypt
- Make sure password is well backed up
- Personal git settings
- NOT .ssh
- That needs to be backed up elsewhere
- ZSH errors
- Prompt
- Startup
compinit:527: no such file or directory: /opt/homebrew/share/zsh/site-functions/_docker_compose
- The file points at
/opt/homebrew/Caskroom/docker/4.22.1,118664/Docker.app/Contents/Resources/etc/docker-compose.zsh-completion
- But that file doesn't exist
- Only
docker.zsh-completion
exists - This is because I'm no longer installing docker-desktop
- Only
- But that file doesn't exist
- Enable iTerm console integration
- Fix VS Code brokenness
- Ruby LSP is frequently broken
- VS Code seems to be trying to use Solargraph instead of Ruby LSP
- I was using Ruby LSP, and it was working; what changed?
- Seems to be due to default Ruby versions
- Deleted ~/.ruby-version
- TODO: Add .tool-versions to config_files
- VS Code seems to be trying to use Solargraph instead of Ruby LSP
- Solargraph frequently crashes
- I didn't even know I was still running this
- RuboCop is crashing on Style/WordArray
- Ruby LSP is frequently broken
- Hook in spelling/dictionary.txt to the MacOS spelling dictionary (~/Library/Spelling/LocalDictionary)
- COMMIT: Configure VS Code to highlight some more things:
- QUESTION: (blue)
- ANSWER: (green)
- PROBLEM: (orange red)
- SOLUTION: (green)
- NOTE: (dark magenta)
- CMB (???)
- BUG: (???)
- BUGFIX: (???)
- DEBUG: (???)
- It already highlights
TODO:
andFIXME:
. - See https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight
- Works in Markdown, despite it not being listed
- Learn to use VS Code "Hey Code"
- Learn to use Cursorless in VS Code
- Requires setting up Talon
- Add keybindings to VS Code
Git: Stage Changes
- Adds the whole file
- Is there 1 for the current hunk?
Git: Stage Block
Git: Stage Selection
Git: Stage Selected Ranges
GitHub Copilot: Generate this
GitHub Copilot: Apply suggestion
GitHub Copilot: Open completions panel
- Ctrl + Enter
GitHub Copilot: Accept panel suggestion
- Uppercase/lowercase/capitalize
- Collapse/show current section
- Open settings.json
- Go to enclosing/matching bracket (like % in Vim)
- I'm thinking
Option + Shift + 5
(Option + %)- Maybe use one of the bracket keys
- Copilot suggests
Ctrl + Shift + \
- Does not appear to do anything out of the box
- I'm thinking
- Go to next/previous error
- Learn VS Code keybindings
Cmd + Shift + E
to show Explorer viewCmd + Shift + V
to show Preview view (I have this overridden by my paste manager)Cmd + Shift + F
to show Search viewCmd + Shift + H
to show Replace viewCmd + Shift + M
to toggle Problems viewCtrl + Shift + G
to show Source Control viewCmd + Shift + X
to show Extensions viewCmd + Shift + D
to show Debug viewCmd + Shift + R
to show Refactoring view (does not work for me)Cmd + Shift + T
to show Terminal view (does not work for me)Cmd + Shift + U
to toggle Output viewCmd + Shift + I
to toggle CopilotCmd + Shift + K
to cut the entire lineCmd + Shift + L
to show Language mode viewCmd + Shift + N
to open a new window/workspaceCmd + Shift + O
to open Symbol searchCmd + Shift + S
to show Save File dialogCmd + Shift + W
to show Close Workspace (possibly prompting to save it)Cmd + Shift + Z
to RedoCmd + Shift + Y
to toggle Debug ConsoleCmd + Shift + 1
through9
- open nth editor group
- VS Code "fixes"
- Make the "collapse" symbols a little less visible
- View / Appearance / Editor Actions Position / Title Bar
-
Saving a setting re-writes "$HOME/Library/Preferences/com.googlecode.iterm2.plist"
- It won't honor a symlink in that location
- Will need to write a pre-commit and post-pull hook, I think
-
Use correct TERM if possible
- See terminfo in /opt/homebrew/Cellar/ncurses/6.4/share/terminfo
- Has iTerm2.app, iterm2-direct
- Has Apple_Terminal
- Has tmux-256color and tmux-direct
- Should have
RGB
and/orTc
- See terminfo in /opt/homebrew/Cellar/ncurses/6.4/share/terminfo
-
Adding -X to less is causing DEL to stop working after we exit less
- Or maybe it isn't?
-
Include private settings using git-encrypt.
- git/local
-
Add Firefox stuff:
- userChrome.css
- user.js
-
Create a pgcli/config file.
- Ignore
pgcli/log
- Ignore
- Fix error on install: ln: /Users/booch/.atom/packages/touchbar-utility/lib/configuration.js: No such file or directory:
- Make sure we're not creating circular soft links, like
zshrc.d/zshrc.d
.- And Work/Work
- Add script/alias to push/pull new versions of this repo.
- Move /usr/local before /usr in $PATH.
- Create an alias for
diff
to usegit diff
alias diff='git diff --no-index --color=always --no-ext-diff'
- See https://sgeb.io/posts/2016/11/til-git-diff-anywhere/
- The
--no-index
is the important bit- It tells git not to compare to the index (staged files)
- Break
bashrc
up like we're breaking upprofile.d
- Determine what really belongs in
bashrc
and what belongs inprofile
- Make a command to return ANSI color codes, instead of VARIABLES
- echo "$(color green)Hello,
$(color green on black)World!$ (color none)" - Also allow for
prompt
, which will surround it with'\['
and'\]'
- echo "$(color green)Hello,
- Move setting of prompt to its own file (in
profile.d
orbashrc.d
) - Add to
key_bindings.sh
- Attempt to reach parity with ZSH For Humans
- Use 4-space indentation
- Change
Style
toLayout
as appropriate- Version 0.49 moved a lot of rules into a new
Layout
section
- Version 0.49 moved a lot of rules into a new
- Review new rules (added since about 0.37) to see how I want them configured
- Use diff-so-fancy
-
Take a look at the below settings I snagged from somewhere.
[pager] diff = diff-so-fancy | less --tabs=4 -RFX --pattern '^(Date|added|deleted|modified): ' [color "diff"] meta = yellow bold commit = green bold frag = magenta bold old = red bold new = green bold whitespace = red reverse [color "diff-highlight"] oldNormal = red bold oldHighlight = "red bold 52" newNormal = "green bold" newHighlight = "green bold 22" [color "branch"] current = yellow reverse local = yellow remote = green [color "status"] added = yellow changed = green untracked = cyan [alias] patch = !git --no-pager diff --no-color
-
-
Learn Vim better
%
= jump to matching bracket
-
Install more plugins (via Vundle):
- tpope/vim-commentary - comment/uncomment blocks of code
- tpope/vim-fugitive - Git
- tpope/vim-rails - Rails
- tpope/vim-haml - HAML
- tpope/vim-sensible - Defaults everyone can agree on
- Limit to built-in laptop keyboard(s):
- Fn to Control mappings
- Right Option to Right Control
- Finder fixes
- Enter to open (Command+O)
- Windows equivalents
- F5 to Command+R (for refreshing pages) (and shifted variant) (and Command+F5)
- Alt+F4 to Command+Q (and Command+F4)
- Restore settings from old Karabiner XML
- Only for Apple Keyboard with Numeric Keypad (device ID 0x024f)
- Shift+Fn to Paste (Command+V)
- Control+Fn to Copy (Command+C)
- Shift+ForwardDelete to Cut (Command+X)
- Fn To F19 (terminal apps only) (to work as Insert)
- Same thing for PC keyboards
- Use
PC Insert
instead ofFn
- Use
- Hot Keys (runs a command)
- Command+Shift+Comma opens System Preferences
- /Applications/System Preferences.app
- Because Command+Comma is the standard keystroke to open Preferences in applications
- Lock screen (maybe Command+Shift+L)
- /usr/bin/pmset displaysleepnow
- /usr/bin/osascript -e 'tell application "System Events" to sleep'
- Command+Shift+Comma opens System Preferences
- Others
- Control+PageDown (and PageUp) to Cycle Through Tabs (Control+Tab)
- Control+Return To Send Email (Command+Shift+D) (Apple Mail app only)
- Only for Apple Keyboard with Numeric Keypad (device ID 0x024f)
- Decide what to do with a Hyper key
- Emacs?
- Vim mappings?
- App launching?
- System actions?
- Change Desktops (Spaces)
- Change window sizes/locations (remap Magnet key-bindings)
- Space bar as modifier
- Hyper?
- Control?
- Shift?
- HJKL and WASD to cursor keys?
- Tab key as modifier
- Super?
- Esc key as modifier
- Hyper?
- Chording?
- See some examples at https://pqrs.org/osx/karabiner/list.html.en
- Return as Control modifier?
- Mouse keys
- Command+\ to mirror Command+Tab
- Fix shortcuts to beginning/end of file
- Ensure I use the correct Shift keys
- See http://stevelosh.com/blog/2012/10/a-modern-space-cadet/#better-shifting
- Also try the Shift to Parentheses that he suggests
- Or maybe Shift+Space for open/close parentheses
- Sticky modifiers
- Alternate key layouts
- Dvorak (Programmer Dvorak specifically)
- Colemak
- Norman
- Capewell
- QGMLWY
- Use my chording keyers
- Build a chording keyer
- Use an Adafruit Feather 32u4 Bluefruit LE controller
- Use Arduino code based on SpiffChorder code
- See if we can get 2 buttons on the index and middle fingers
- Or at least 2 different "on" positions
- This would give 30-60 combinations (not including the thumb)
- See if we can get 4 buttons on the thumb
- Or something like a joystick with 4 positions
- Or 2 rocker switches with 2 "on" positions each
- See if we can get the thumb buttons to be toggles
- They'll remain in "on" position until we press them a 2nd time
- It should be easy to feel them to determine what state they're in
- Ideal modifiers:
- letters (no modifiers)
- shift
- number/punctuation (plus shifted variants)
- control
- command (and movements and actions)
[I don't really use Atom any more, so these can probably be deleted.]
- Change key-binding for Edit / Bookmark / View All
- The default
Control+F2
conflicts with theMove focus to the menu bar
global shortcut
- The default
- Remove key-bindings for Ctrl+Tab
- Can now do that by unchecking Enable MRU Tab Switching in
Tabs
package
- Can now do that by unchecking Enable MRU Tab Switching in
- Restore Cmd+Shift+T back to reopening the most-recently closed tab
- Terminal-plus is overriding it
- If in Terminal-plus, have Cmd+W close the terminal, instead of the current tab
- Fix YAML Semanticolor settings
- Only colorize left side of key/value pairs
- Leave everything else normal color
- Only colorize left side of key/value pairs
- Default Markdown to 4-space indentation
- Default YAML to 4-space indentation
- Make completion/expansion less aggressive
- Like when I type
tab
and hit Tab, it expands totable
, then to a Markdown table
- Like when I type