- 10 Posts
- 10 Comments
vfclists@alien.topOPBto Emacs@communick.news•How can swiper or some other search be restricted to a range of columns in a buffer?English1·1 year agoThe command is specific to the packages list.
It won’t work with regular sniper.
vfclists@alien.topOPBto Emacs@communick.news•How can swiper or some other search be restricted to a range of columns in a buffer?English1·1 year agoI didn’t know that narrowing could also apply to columns, but narrowing to a rectangular selection means scrolling to the bottom of the listing, which is why I prefer to search in the first place.
vfclists@alien.topOPBto Emacs@communick.news•Project grep search with folded results, navigable file preview, search term and results window retention?English1·1 year agoI’m trying it and get can’t the action menu.
Is this in a new version of helm-projectile-ag?
vfclists@alien.topBto Emacs@communick.news•Is the lack of multithreading support in emacs a dealbreaker for you?English1·1 year agoIf you want a multithreading Emacs contribute to https://github.com/lem-project/lem. That will probably get you there faster than with Emacs.
Truth is it isn’t Emacs that you want, but the features it has. Just replicate them in Lem.
vfclists@alien.topBto Emacs@communick.news•project-tasks: Efficient task management for your projects by using org-babel.English1·1 year agoPlease use the four spaces indentation method of formatting code not the triple backtick.
It doesn’t look right in the old reddit style format which is better for code.
where is /u/backtickbot when you need it?
vfclists@alien.topOPBto Emacs@communick.news•What is the function for reading text line by line from the command line in batch mode?English1·1 year agoI made some progress, with
read-from-minibuffer
the function I need, however I want to terminate the script and suppress the error information at the end.─○ cat text1.txt | emacs -batch --eval "(while t (princ (read-from-minibuffer \"\") (terpri)))" Here is some text Will it be tripled? Here is some text Will it be tripled? Here is some text Will it be tripled? Debugger entered--Lisp error: (end-of-file "Error reading from stdin") read-from-minibuffer("") (princ (read-from-minibuffer "") (terpri)) (while t (princ (read-from-minibuffer "") (terpri))) eval((while t (princ (read-from-minibuffer "") (terpri))) t) command-line-1(("--eval" "(while t (princ (read-from-minibuffer \"\") (terpri)...")) command-line() normal-top-level()
vfclists@alien.topOPBto Emacs@communick.news•Do functions like replace-regexp have the ability to replace groups independently?English1·1 year agoThis sounds exactly like what I’m looking for. I will check it out.
vfclists@alien.topOPBto Emacs@communick.news•How to replace string with a function value?English1·1 year agoHere is the solution for my
.zsh_history
example:I first created a small function for the unix time string. More of the functionality in the replacement string can be included if preferred.
(defun rgx-get-time-string (unixtimestr) (format-time-string "%Y-%m-%d %H:%M" (string-to-number unixtimestr)) )
The search string:
\(: \)\([0-9]\{10\}\)\(:0;\)
The replacement string:
\,(concat (format "%6d " (line-number-at-pos)) (rgx-get-time-string (match-string 2)) " "))
(match-string 2)
is an alternative for the back reference for the second string matched\2
vfclists@alien.topOPBto Emacs@communick.news•How to replace string with a function value?English1·1 year agoAnd how is this a meaningful answer to the question?
Is there some rule that questions asked here shouldn’t be asked on stackexchange too?
Clever🙂, but doesn’t generalize to other documents.
Is there a command to select a range of characters on a line and extend it as a column to the end of the buffer or narrowed region without scrolling down to mark the actual area?