Skip to content

Instantly share code, notes, and snippets.

View seachai's full-sized avatar
🚀

Chai seachai

🚀
View GitHub Profile
@seachai
seachai / gist:948ed1eeafa32ce03db6685edb879f71
Last active November 16, 2024 00:49
iTerm 2 Natural Text Editing Preset
On iTerm2 - Open Preferences > Profiles > Keys > Key Mappings > Presets > Select Natural Text Editing
- You can move a word backwards using Option ⌥ + ← and a word forwards using Option ⌥ + →
- Move to the start of the line using fn + ← and to the end of the line with fn + →.
- Also you can delete a word backwards using Option ⌥ + ⌫, delete the whole line using Command ⌘ + ⌫.
If the preset doesn't appear, reinstall iTerm2. If you installed it using Homebrew + Cask:
brew cask reinstall iterm2
const form = document.querySelector('form')
// Will grab all values from the current form and create a key : value pair
Object.values(form).reduce((obj,field) => {
obj[field.name] = field.value;
return obj
}, {});
@seachai
seachai / setup.md
Created March 9, 2022 17:51
Macbook Setup Frontend