vfclists

joined 1 year ago
[–] [email protected] 1 points 1 year ago

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?

[–] [email protected] 1 points 1 year ago (1 children)

The command is specific to the packages list.

It won't work with regular sniper.

[–] [email protected] 1 points 1 year ago

I 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.

[–] [email protected] 1 points 1 year ago

I'm trying it and get can't the action menu.

Is this in a new version of helm-projectile-ag?

[–] [email protected] 1 points 1 year ago

If 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.

[–] [email protected] 1 points 1 year ago (1 children)

Please 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?

[–] [email protected] 1 points 1 year ago

I 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()
[–] [email protected] 1 points 1 year ago

This sounds exactly like what I'm looking for. I will check it out.

[–] [email protected] 1 points 1 year ago

Here 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

[–] [email protected] 1 points 1 year ago

And how is this a meaningful answer to the question?

Is there some rule that questions asked here shouldn't be asked on stackexchange too?