From 71ccafd5657459d0c0da3e65a00a78d2753ab575 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sat, 20 Jul 2024 17:01:22 -0500 Subject: [PATCH] update --- .config/kanshi/config | 11 ++++++--- .ideavimrc | 55 +++++++++++++++++++++++++++++++++++++++---- .zshrc | 14 +++++++---- 3 files changed, 68 insertions(+), 12 deletions(-) diff --git a/.config/kanshi/config b/.config/kanshi/config index 1adf28d..767a04f 100644 --- a/.config/kanshi/config +++ b/.config/kanshi/config @@ -1,13 +1,12 @@ profile { - output DP-6 enable position 3440,1440 output DP-7 enable position 0,1440 output DP-5 enable position 0,0 output eDP-1 disable } profile { - output DP-7 enable position 0,1440 - output DP-5 enable position 0,0 + output DP-2 enable position 0,1440 + output DP-8 enable position 0,0 output eDP-1 disable } @@ -35,6 +34,12 @@ profile { output eDP-1 disable } +profile { + output DP-2 enable position 0,1440 + output DP-6 enable position 0,0 + output eDP-1 disable +} + profile { output eDP-1 enable position 0,0 } diff --git a/.ideavimrc b/.ideavimrc index 17777b7..27ba5ec 100644 --- a/.ideavimrc +++ b/.ideavimrc @@ -10,6 +10,7 @@ set visualbell set ignorecase set smartcase set notimeout +set clipboard+=unnamed " 3rd party set which-key @@ -50,7 +51,11 @@ noremap l noremap k noremap j -" File Navigation +" Navigation +let g:WhichKeyDesc_GoToFile = "ff Go to file" +let g:WhichKeyDesc_RecentFiles = " Recent files" +let g:WhichKeyDesc_RecentLocations = "fl Recent locations" +let g:WhichKeyDesc_NewScratchFile = "fs New scratch file" map ff (GoToFile) map (RecentFiles) map fl (RecentLocations) @@ -61,6 +66,11 @@ nnoremap zz nnoremap zz " Window Management +let g:WhichKeyDesc_WindowManagement = "% Window management" +let g:WhichKeyDesc_SplitVertically = "% Split vertically" +let g:WhichKeyDesc_SplitHorizontally = "\" Split horizontally" +let g:WhichKeyDesc_CloseContent = "x Close content" +let g:WhichKeyDesc_MoveEditorToOppositeTabGroup = "wm Move editor to opposite tab group" map % (SplitVertically) map " (SplitHorizontally) map x (CloseContent) @@ -71,14 +81,26 @@ inoremap (PopupMenu-selectNext) inoremap (PopupMenu-selectPrev) " Debug options +let g:WhichKeyDesc_DebugOptions = "dd Debug options" +let g:WhichKeyDesc_ToggleLineBreakpoint = "db Toggle line breakpoint" map dd (Debug) map db (ToggleLineBreakpoint) " Actions +let g:WhichKeyDesc_Actions = "a Actions" +let g:WhichKeyDesc_ShowIntentionActions = "am Show intention actions" +let g:WhichKeyDesc_SearchEverywhere = "as Search everywhere" map am (ShowIntentionActions) map as (SearchEverywhere) " Refactoring +let g:WhichKeyDesc_Refactoring = "r Refactoring" +let g:WhichKeyDesc_RenameElement = "rn Rename element" +let g:WhichKeyDesc_ExtractMethod = "re Extract method" +let g:WhichKeyDesc_IntroduceVariable = "rv Introduce variable" +let g:WhichKeyDesc_IntroduceField = "rf Introduce field" +let g:WhichKeyDesc_ChangeSignature = "rs Change signature" +let g:WhichKeyDesc_QuickListPopupAction = "rr Quick list popup action" map rn (RenameElement) map re (ExtractMethod) map rv (IntroduceVariable) @@ -87,22 +109,45 @@ map rs (ChangeSignature) map rr (Refactorings.QuickListPopupAction) " Go To Code +let g:WhichKeyDesc_GoToCode = "g Go to code" +let g:WhichKeyDesc_GoToDeclaration = "gd Go to declaration" +let g:WhichKeyDesc_GotoTypeDeclaration = "gy Goto type declaration" +let g:WhichKeyDesc_GotoImplementation = "gi Goto implementation" +let g:WhichKeyDesc_ShowUsages = "gu Show usages" +let g:WhichKeyDesc_GotoTest = "gt Goto test" +let g:WhichKeyDesc_Back = "gb Back" +let g:WhichKeyDesc_Forward = "gf Forward" map gd (GoToDeclaration) map gy (GotoTypeDeclaraton) map gi (GotoImplementation) map gu (ShowUsages) map gt (GotoTest) -map gf (Back) -map gb (Forward) +map gb (Back) +map gf (Forward) " Go Tag +let g:WhichKeyDesc_GoTag = "gt Go tag" +let g:WhichKeyDesc_GoTag_AddKey = "gt Add Tag" map gt :action IntentionActionAsAction_com.goide.inspections.tag.GoTagAddKeyIntention " Errors +let g:WhichKeyDesc_Errors = "e Errors" +let g:WhichKeyDesc_NextError = "en Next error in solution" +let g:WhichKeyDesc_PrevError = "ep Previous error in solution" map en (ReSharperGotoNextErrorInSolution) map ep (ReSharperGotoPrevErrorInSolution) " Menu +let g:WhichKeyDesc_Menu = "m Menu" +let g:WhichKeyDesc_Menu_Main = "mm Main menu" +let g:WhichKeyDesc_AnalyzeMenu = "ma Analyze Menu" +let g:WhichKeyDesc_BuildMenu = "mb Build Menu" +let g:WhichKeyDesc_CodeMenu = "mc Code menu" +let g:WhichKeyDesc_FindMenuGroup = "mf Find menu group" +let g:WhichKeyDesc_GoToMenu = "mg Go to menu" +let g:WhichKeyDesc_ScopeViewPopupMenu = "ms Scope view popup menu" +let g:WhichKeyDesc_EditorTabPopupMenu = "mt Editor tab popup menu" +let g:WhichKeyDesc_ToolWindowsGroup = "mw Tool windows group" map mm (MainMenu) map ma (AnalyzeMenu) map mb (BuildMenu) @@ -113,5 +158,5 @@ map ms (ScopeViewPopupMenu) map mt (EditorTabPopupMenu) map mw (ToolWindowsGroup) -" Unit Tests -map tr (RunClass) \ No newline at end of file +" Run +map rc (RunClass) diff --git a/.zshrc b/.zshrc index 502aa5f..02e5297 100644 --- a/.zshrc +++ b/.zshrc @@ -36,7 +36,7 @@ eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/config.toml)" if command -v tmux &> /dev/null && [[ "$TERMINAL_EMULATOR" == "JetBrains-JediTerm" ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then cwd=$(pwd) - session_name="$JetBrainsEditor-$(basename "$cwd" | tr -d '.')" + session_name="JediTerm-$(basename "$cwd" | tr -d '.')" if tmux has-session -t $session_name; then tmux attach -t $session_name @@ -45,9 +45,15 @@ if command -v tmux &> /dev/null && [[ "$TERMINAL_EMULATOR" == "JetBrains-JediTer fi fi -#if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then -# exec tmux attach -#fi +if command -v tmux &> /dev/null && [[ ! "$TERMINAL_EMULATOR" == "JetBrains-JediTerm" ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then + session_name="general" + + if tmux has-session -t $session_name; then + tmux attach -t $session_name + else + tmux new -s $session_name + fi +fi if [[ -f "/opt/homebrew/bin/brew" ]] then # If you're using macOS, you'll want this enabled