( counsel-projectile-modify-action 'counsel-projectile-switch-project-action '(( add ( "T" counsel-projectile-switch-project-action-dired-new-tab "open in new tab") 1))) :config I want projectile to open dired upon selecting a project. ( use-package counsel-projectile :after projectile :init ( counsel-projectile-mode) ( tab-bar-close-tab ( + tab-bar-index 1))))) ( when tab-bar-index ( projectile-kill-buffers) ( let* (( project-name ( projectile-project-name)) ( defun projectile-kill-buffers-and-enclosing-tab () ( counsel-projectile-switch-project-by-name project)) ( let (( projectile-switch-project-action 'projectile-dired)) ( if tab-bar-index ( tab-bar-select-tab ( + tab-bar-index 1)) ![]() ( tab-bar-index ( tab-bar-tab-index-by-name project-name))) ( let* (( project-name ( file-name-nondirectory ( directory-file-name project))) ( defun counsel-projectile-switch-project-action-dired-new-tab ( project) ( setq tab-bar-tab-name-function #' projectile-name-tab-by-project-name-or-default) ( let (( project-name ( projectile-project-name))) ![]() ( defun projectile-name-tab-by-project-name-or-default () By default,Įmacs makes backups in the working directory, but that creates some serious clutter. In case something goes wrong locally before pushing changes to the remote. Most of my projects are under git control, but still we need a way to ensure local backups dirvish-vc-menu) remapped `dired-view-file' ( "TAB". dirvish-quicksort) remapped `dired-sort-toggle-or-edit' ( "v". dirvish-history-jump) remapped `describe-mode' ( "s". Dirvish has all the keybindings in `dired-mode-map' already :map dirvish-mode-map ( "a". ![]() :bind Bind `dirvish|dirvish-side|dirvish-dwim' as you see fit (( "C-c f". Enable mouse drag-and-drop files to other applications ( setq dired-mouse-drag-files t) added in Emacs 29 ( setq mouse-drag-and-drop-region-cross-program t) added in Emacs 29 ( setq dired-listing-switches "-l -almost-all -human-readable -time-style=long-iso -group-directories-first -no-group") Don't worry, Dirvish is still performant even you enable all these attributes ( dirvish-attributes '( all-the-icons collapse subtree-state vc-state git-msg)) ( dirvish-mode-line-format '( :left ( sort file-time " " file-size symlink) :right ( omit yank index))) :custom ( dirvish-quick-access-entries '(( "h" "~/" "Home") ( use-package dirvish :init ( dirvish-override-dired-mode)
0 Comments
Leave a Reply. |