Skip to content

Commit

Permalink
✨ add sublime text settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineDjeghri committed Apr 28, 2024
1 parent 0a86a0c commit 54dce3e
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 15 deletions.
23 changes: 13 additions & 10 deletions docs/shortcuts_and_apps_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ Settings and shortcuts for some apps that I use on Windows 11.
* [1.3. GlazeWM (windows only)](#13-glazewm-windows-only)
* [1.4. PowerToys (windows only)](#14-powertoys-windows-only)
* [1.5. Windows Terminal (windows only)](#15-windows-terminal-windows-only)
* [1.6. Sublime Text (All platforms)](#16-sublime-text-all-platforms)
* [1.6. Sublime Text 4 (All platforms)](#16-sublime-text-4-all-platforms)
* [1.7. Obsidian (All platforms)](#17-obsidian-all-platforms)
* [1.8. PyCharm (All platforms)](#18-pycharm-all-platforms)
* [1.8.1. Tips & tricks](#181-tips--tricks)
* [1.8.2. Personal pycharm shortcuts](#182-personal-pycharm-shortcuts)
* [1.8.3. Python remote interpreter (SSH /WSL)](#183-python-remote-interpreter-ssh-wsl)
* [1.8.4. Pycharm remote deployment](#184-pycharm-remote-deployment)
* [1.8.5. Remote SSH for ReactJS](#185-remote-ssh-for-reactjs)
* [1.8.6. 1.7 HWINFO:](#186-17-hwinfo)
* [1.8.7. 1.7 Google colab:](#187-17-google-colab)
* [1.8.8. 1.8 Powerpoint:](#188-18-powerpoint)
* [1.9. HWINFO:](#19-hwinfo)
* [1.10. Google colab:](#110-google-colab)
* [1.11. Powerpoint:](#111-powerpoint)
<!-- TOC -->

## 1.1. Windows shortcuts
Expand Down Expand Up @@ -57,9 +57,9 @@ shortcuts: You can read more about the shortcuts [here](https://github.com/glaze
- Automatic installation of the Terminal settings available with this [command](windows_workflow/README_windows.md#2-software). Select the second option.
- wget on Windows terminal: add it to your terminal: https://www.programmersought.com/article/90723524682/

## 1.6. Sublime Text (All platforms)
## 1.6. Sublime Text 4 (All platforms)
- Install the package control: https://packagecontrol.io/installation
- Packages : TBD
- (Windows) Copy and paste the [Package Control.sublime-settings](windows_workflow/Package%20Control.sublime-settings) and [Preferences.sublime-settings](windows_workflow/Preferences.sublime-settings) in : `%UserProfile%\AppData\Roaming\Sublime Text\Packages\User`

## 1.7. Obsidian (All platforms)
- Install the community plugins: TBD
Expand Down Expand Up @@ -133,11 +133,14 @@ Some of them are re-mapped :
| call actions | alt+enter | reformat code, correct code & more , used in editor |
| insert / create new | alt+ insert | can be used in editor (insert tables ect..) or project panel (create new files) |
| create new branch | ctrl+alt+n | |
| find all | double shift | search everything like files, actions, classes |
| find actions | ctrl+shit+a | search actions like tools (docker, remote server) but also execute shortcuts |
| find files | ctrl+shift+n | |
| find in files | ctrl+shift+f | |
| find inside current panel | ctrl + F | can be used in editor |
| show recent files | ctrl + E | |
| show recent locations | ctrl + shift + | |
| show recent locations | ctrl + shift + E | |
| Quick documentation | Ctrl + Q | |
| Quick documentation | Ctrl + Q | |
| **select** | |
| **refactor** | |
Expand Down Expand Up @@ -190,10 +193,10 @@ In the main menu, select Tools | Deployment | Automatic upload. Note that automa
- package manager: yarn, for example
- environment: `PATH=` put the result of the command `echo $PATH`
### 1.8.6. 1.7 HWINFO:
## 1.9. HWINFO:
- export file: regedit -> ``Ordinateur\HKEY_CURRENT_USER\Software\HWiNFO64``
- import settings: double-click on the downloaded file to restore settings. Check mine [here](windows_workflow/HWINFO_settings.reg)
### 1.8.7. 1.7 Google colab:
## 1.10. Google colab:
- Add this code to prevent it from disconnecting. [source](https://colab.research.google.com/github/oobabooga/AI-Notebooks/blob/main/Colab-TextGen-GPU.ipynb#scrollTo=f7TVVj_z4flw)
```py
#@title 1. Keep this tab alive to prevent Colab from disconnecting you { display-mode: "form" }
Expand All @@ -202,7 +205,7 @@ In the main menu, select Tools | Deployment | Automatic upload. Note that automa
%%html
<audio src="https://oobabooga.github.io/silence.m4a" controls>
```
### 1.8.8. 1.8 Powerpoint:
## 1.11. Powerpoint:
**Turn a PDF to black and white**
Convert to pptx (IlovePDF)
Open with PowerPoint (Office 2016)
Expand Down
2 changes: 1 addition & 1 deletion docs/unix_workflow/setup_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ install_zsh_oh_my_zsh_and_utilities() {
echo "${YELLOW} Installing lsd, bpytop, bat, fzf,neofetch, stow ${RESET}"
sudo snap install lsd
sudo snap install bpytop
sudo apt install bat fzf neofetch stow -y
sudo apt install bat neofetch stow -y

echo 'alias cat="batcat"' >>~/.zshrc
echo 'alias top="bpytop"' >>~/.zshrc
Expand Down
29 changes: 29 additions & 0 deletions docs/windows_workflow/Package Control.sublime-settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"AutoFileName",
"BracketHighlighter",
"Compare Side-By-Side",
"LSP",
"LSP-bash",
"LSP-copilot",
"LSP-json",
"LSP-pylsp",
"LSP-yaml",
"Markdown Extended",
"MarkdownPreview",
"Package Control",
"PowerShell",
"Pretty Shell",
"SideBarEnhancements",
"SublimeLinter",
"Terminus",
"Theme - One Dark",
"WordingStatus",
],
}
9 changes: 9 additions & 0 deletions docs/windows_workflow/Preferences.sublime-settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ignored_packages":
[
],
"font_size": 9,
"index_files": true,
"theme": "One Dark.sublime-theme",
"color_scheme": "Packages/Theme - One Dark/One Dark.tmTheme",
}
8 changes: 4 additions & 4 deletions docs/windows_workflow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ general:
# *Strongly* recommended to set to 'false'. Whether to globally enable/disable
# window transition animations (on minimize, close, etc). Set to 'unchanged'
# to make no setting changes.
window_animations: "false"
window_animations: false

gaps:
# Gap between adjacent windows.
Expand Down Expand Up @@ -155,18 +155,18 @@ window_rules:
# To find an app : open it then go to task manager and show its process name. The process name is case sensitive
# 1 browser
- command: "move to workspace 1"
match_process_name: "msedge|brave"
match_process_name: "msedge|brave|chrome"
# 2 pycharm
- command: "move to workspace 2"
# Process name to match exactly.
match_process_name: "pycharm64"
match_process_name: "pycharm64|Code"
# 2 file explorer, Files,
- command: "move to workspace 3"
match_process_name: "explorer|Files"

# 4 text editors : sublime text, word, bloc note..
- command: "move to workspace 4"
match_process_name: "sublime_text|WINWORD|EXCEL"
match_process_name: "sublime_text|WINWORD|EXCEL|Obsidian|WebViewHost"

# 5 Social
- command: "move to workspace 5"
Expand Down

0 comments on commit 54dce3e

Please sign in to comment.