You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fucking github don't allow me to create a fork! What the hell wrong with that world! Github is a stupid shit.
Case: in Dired when you want to copy file you enter path and you don't want filename at right side to be deleted duiring composing new path.
Another case when you rename or move file you need completion and preserve pointer.
(defunvertico-exit (&optionalarg)
"Exit minibuffer with current candidate or input if prefix ARG is given."
(interactive"P")
(when (and (not arg) (>= vertico--index 0))
(vertico-insert t))
(when (vertico--match-p (minibuffer-contents-no-properties))
(exit-minibuffer)))
(defunvertico-insert (&optionalexit-flag)
"Insert current candidate in minibuffer."
(interactive)
(when (> vertico--total 0)
(let ((vertico--index (max0 vertico--index)))
(if exit-flag ; - RET
(insert (prog1
(vertico--candidate) ; return value
(delete-minibuffer-contents)))
;; else - TAB - completion;; concat vartiant and fix // double + reset pointer position after
(let ((efn (expand-file-name (concat (vertico--candidate) (buffer-substring (point) (point-max)))))
(pd (- (point-max) (point)))) ; text lenght after pointer;; (print pd)
(delete-minibuffer-contents)
(insert efn)
(if (> pd 0) ; if we renaming preserve pointer after variant
(goto-char (- (+ (minibuffer-prompt-end) (length (vertico--candidate))) 1 ))))))))
The text was updated successfully, but these errors were encountered:
Fucking github don't allow me to create a fork! What the hell wrong with that world! Github is a stupid shit.
Case: in Dired when you want to copy file you enter path and you don't want filename at right side to be deleted duiring composing new path.
Another case when you rename or move file you need completion and preserve pointer.
The text was updated successfully, but these errors were encountered: