diff --git a/.config/fish/_fzf_configure_bindings_help.fish b/.config/fish/_fzf_configure_bindings_help.fish deleted file mode 120000 index d30fd4e..0000000 --- a/.config/fish/_fzf_configure_bindings_help.fish +++ /dev/null @@ -1 +0,0 @@ -functions/_fzf_configure_bindings_help.fish \ No newline at end of file diff --git a/.config/fish/_fzf_extract_var_info.fish b/.config/fish/_fzf_extract_var_info.fish deleted file mode 120000 index 0e1aac9..0000000 --- a/.config/fish/_fzf_extract_var_info.fish +++ /dev/null @@ -1 +0,0 @@ -functions/_fzf_extract_var_info.fish \ No newline at end of file diff --git a/.config/fish/_fzf_preview_file.fish b/.config/fish/_fzf_preview_file.fish deleted file mode 120000 index fb6d63b..0000000 --- a/.config/fish/_fzf_preview_file.fish +++ /dev/null @@ -1 +0,0 @@ -functions/_fzf_preview_file.fish \ No newline at end of file diff --git a/.config/fish/_fzf_report_file_type.fish b/.config/fish/_fzf_report_file_type.fish deleted file mode 120000 index d426bd8..0000000 --- a/.config/fish/_fzf_report_file_type.fish +++ /dev/null @@ -1 +0,0 @@ -functions/_fzf_report_file_type.fish \ No newline at end of file diff --git a/.config/fish/_fzf_search_directory.fish b/.config/fish/_fzf_search_directory.fish deleted file mode 120000 index 18a6be2..0000000 --- a/.config/fish/_fzf_search_directory.fish +++ /dev/null @@ -1 +0,0 @@ -functions/_fzf_search_directory.fish \ No newline at end of file diff --git a/.config/fish/_fzf_search_git_log.fish b/.config/fish/_fzf_search_git_log.fish deleted file mode 120000 index e12d223..0000000 --- a/.config/fish/_fzf_search_git_log.fish +++ /dev/null @@ -1 +0,0 @@ -functions/_fzf_search_git_log.fish \ No newline at end of file diff --git a/.config/fish/_fzf_search_git_status.fish b/.config/fish/_fzf_search_git_status.fish deleted file mode 120000 index d400692..0000000 --- a/.config/fish/_fzf_search_git_status.fish +++ /dev/null @@ -1 +0,0 @@ -functions/_fzf_search_git_status.fish \ No newline at end of file diff --git a/.config/fish/_fzf_search_history.fish b/.config/fish/_fzf_search_history.fish deleted file mode 120000 index 74802f1..0000000 --- a/.config/fish/_fzf_search_history.fish +++ /dev/null @@ -1 +0,0 @@ -functions/_fzf_search_history.fish \ No newline at end of file diff --git a/.config/fish/_fzf_search_variables.fish b/.config/fish/_fzf_search_variables.fish deleted file mode 120000 index 955e919..0000000 --- a/.config/fish/_fzf_search_variables.fish +++ /dev/null @@ -1 +0,0 @@ -functions/_fzf_search_variables.fish \ No newline at end of file diff --git a/.config/fish/_fzf_wrapper.fish b/.config/fish/_fzf_wrapper.fish deleted file mode 120000 index 9abf528..0000000 --- a/.config/fish/_fzf_wrapper.fish +++ /dev/null @@ -1 +0,0 @@ -functions/_fzf_wrapper.fish \ No newline at end of file diff --git a/.config/fish/config.fish b/.config/fish/config.fish index d058443..193f456 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -12,6 +12,7 @@ fish_hybrid_key_bindings set -gx MANPAGER "sh -c 'col -bx | bat -l man -p'" bind \cx 'if jobs > /dev/null ; fg; fish_prompt; end' +bind -M insert \ed 'edit-dotfile' if [ (uname -r | sed -n 's/.*\( *Microsoft *\).*/\1/ip') ] set -g DISPLAY (cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}') diff --git a/.config/fish/e.fish b/.config/fish/e.fish deleted file mode 120000 index a912009..0000000 --- a/.config/fish/e.fish +++ /dev/null @@ -1 +0,0 @@ -functions/e.fish \ No newline at end of file diff --git a/.config/fish/fish_prompt.fish b/.config/fish/fish_prompt.fish deleted file mode 120000 index f087156..0000000 --- a/.config/fish/fish_prompt.fish +++ /dev/null @@ -1 +0,0 @@ -functions/fish_prompt.fish \ No newline at end of file diff --git a/.config/fish/fisher.fish b/.config/fish/fisher.fish deleted file mode 120000 index c1d8fad..0000000 --- a/.config/fish/fisher.fish +++ /dev/null @@ -1 +0,0 @@ -functions/fisher.fish \ No newline at end of file diff --git a/.config/fish/functions/edit-dotfile.fish b/.config/fish/functions/edit-dotfile.fish new file mode 100644 index 0000000..f817aa6 --- /dev/null +++ b/.config/fish/functions/edit-dotfile.fish @@ -0,0 +1,17 @@ +function edit-dotfile + pushd /home/joe/.dotfiles/ + + export FZF_DEFAULT_COMMAND='find . -path './.git' -prune -o -print' + + set file (fzf --height=35% --preview 'echo {}') + if test $file + set fullpath (readlink -f $file) + popd + if [ -d $fullpath ] + cd $fullpath + else + nvim $fullpath + end + end + +end diff --git a/.config/fish/functions/set-colors.fish b/.config/fish/functions/set-colors.fish deleted file mode 100644 index 92383de..0000000 --- a/.config/fish/functions/set-colors.fish +++ /dev/null @@ -1,3 +0,0 @@ -function set-colors --wraps=kitty\ @\ set-colors\ -a\ -c\ \(cd\ \~/.config/kitty/kitty-themes/themes/preferred/\ \&\&\ fzf\ --height=35\%\ --preview\ \'echo\ \{\}\ \&\&\ kitty\ @\ set-colors\ -a\ -c\ \{\}\'\) --wraps=kitty\ @\ set-colors\ -a\ -c\ \(cd\ \~/.config/kitty/kitty-themes/themes/preferred/\ \&\&\ fzf\ --height=35\%\ --preview\ \'echo\ \{\}\ \&\&\ kitty\ @\ set-colors\ -a\ -c\ \{\}\'\)\ \&\&\ cd\ - --wraps=kitty\ @\ set-colors\ -a\ -c\ \(cd\ \~/.config/kitty/kitty-themes/themes/preferred/\ \&\&\ fzf\ --height=35\%\ --preview\ \'echo\ \{\}\ \&\&\ kitty\ @\ set-colors\ -a\ -c\ \{\}\'\ \&\&\ cd\ -\) --wraps=kitty\ @\ set-colors\ -a\ -c\ \(cd\ \~/.config/kitty/kitty-themes/themes/preferred/\ \&\&\ fzf\ --height=35\%\ --preview\ \'echo\ \{\}\ \&\&\ kitty\ @\ set-colors\ -a\ -c\ \{\}\'\)\ \;\ cd\ - --wraps=kitty\ @\ set-colors\ -a\ -c\ \(cd\ \~/.config/kitty/kitty-themes/themes/preferred/\ \&\&\ fzf\ --height=35\%\ --preview\ \'echo\ \{\}\ \&\&\ kitty\ @\ set-colors\ -a\ -c\ \{\}\'\ \;\;\ cd\ -\) --description alias\ set-colors\ kitty\ @\ set-colors\ -a\ -c\ \(cd\ \~/.config/kitty/kitty-themes/themes/preferred/\ \&\&\ fzf\ --height=35\%\ --preview\ \'echo\ \{\}\ \&\&\ kitty\ @\ set-colors\ -a\ -c\ \{\}\'\ \;\;\ cd\ -\) - kitty @ set-colors -a -c (cd ~/.config/kitty/kitty-themes/themes/preferred/ && fzf --height=35% --preview 'echo {} && kitty @ set-colors -a -c {}' ;; cd -) $argv; -end diff --git a/.config/fish/fzf_configure_bindings.fish b/.config/fish/fzf_configure_bindings.fish deleted file mode 120000 index 7d1f48a..0000000 --- a/.config/fish/fzf_configure_bindings.fish +++ /dev/null @@ -1 +0,0 @@ -functions/fzf_configure_bindings.fish \ No newline at end of file diff --git a/.config/fish/icat.fish b/.config/fish/icat.fish deleted file mode 120000 index f0c3390..0000000 --- a/.config/fish/icat.fish +++ /dev/null @@ -1 +0,0 @@ -functions/icat.fish \ No newline at end of file diff --git a/.config/fish/n.fish b/.config/fish/n.fish deleted file mode 120000 index d671ba4..0000000 --- a/.config/fish/n.fish +++ /dev/null @@ -1 +0,0 @@ -functions/n.fish \ No newline at end of file diff --git a/.config/fish/r.fish b/.config/fish/r.fish deleted file mode 120000 index 0b99a3a..0000000 --- a/.config/fish/r.fish +++ /dev/null @@ -1 +0,0 @@ -functions/r.fish \ No newline at end of file diff --git a/.config/fish/ranger-cd.fish b/.config/fish/ranger-cd.fish deleted file mode 120000 index 88fddca..0000000 --- a/.config/fish/ranger-cd.fish +++ /dev/null @@ -1 +0,0 @@ -functions/ranger-cd.fish \ No newline at end of file diff --git a/.config/fish/select-kitty-theme.fish b/.config/fish/select-kitty-theme.fish deleted file mode 120000 index 74e79c4..0000000 --- a/.config/fish/select-kitty-theme.fish +++ /dev/null @@ -1 +0,0 @@ -functions/select-kitty-theme.fish \ No newline at end of file diff --git a/.config/fish/set-colors.fish b/.config/fish/set-colors.fish deleted file mode 120000 index 737b864..0000000 --- a/.config/fish/set-colors.fish +++ /dev/null @@ -1 +0,0 @@ -functions/set-colors.fish \ No newline at end of file diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 26c62b5..0ec0883 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -114,7 +114,7 @@ all of the evil keybindings in buffers like magit, without compromises." '(flycheck-color-mode-line-face-to-color 'mode-line-buffer-id) '(frame-background-mode 'dark) '(package-selected-packages - '(multi-vterm evil-collection smartparens vterm all-the-icons-dired all-the-icons org-bullets sudoku select-themes fsharp-mode eglot-fsharp fish-mode find-file-in-project helpful ahk-mode magit rainbow-delimiters csharp-mode doom-themes marginalia eglot selectrum-prescient prescient selectrum avy evil-commentary evil-embrace evil-snipe evil-surround undo-tree which-key dashboard)) + '(magit ranger multi-vterm evil-collection smartparens vterm all-the-icons-dired all-the-icons org-bullets sudoku select-themes fsharp-mode eglot-fsharp fish-mode find-file-in-project helpful ahk-mode rainbow-delimiters csharp-mode doom-themes marginalia eglot selectrum-prescient prescient selectrum avy evil-commentary evil-embrace evil-snipe evil-surround undo-tree which-key dashboard)) '(window-divider-mode nil)) (custom-set-faces ;; custom-set-faces was added by Custom.