all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* operations on path lists
@ 2023-02-04  5:32 Samuel Wales
  2023-02-04  6:32 ` Jean Louis
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Samuel Wales @ 2023-02-04  5:32 UTC (permalink / raw)
  To: help-gnu-emacs

suppose i do

  find . -iname '*foo*' -type d | sort

and suppose that i want to copy these dirs to another dir, or so.  the
components and paths can be long.

it gets confusing, trying to interpret these paths.  what is
underneath what in the fs tree?

i'd like to do at least one of the following operations on this list.
i don't know which would be more clear in all cases.


1.  shortcut all subsequent paths

if a path is like ./.../...foo.../.../...foo..., then eliminate that line.
i.e. eliminate paths that have common prefix paths on any previous line.

2.  highlight adjacent subsequent paths' common components

if i have paths like

./hi/foo
./hi/there/foo
./whatever/whatever/foo

then i want line 2 to have ./hi/ highlighted.  i might also like this
one for, not paths, but lines, to show intra-component differences.
but in that case, it might be the difference i want highlghted, and it
need not be a prefix or a suffix.


is there anything like any of these in emacs?  i don't know of a cli
solution either.

-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2023-02-11 14:02 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-04  5:32 operations on path lists Samuel Wales
2023-02-04  6:32 ` Jean Louis
2023-02-04  8:06   ` Emanuel Berg
2023-02-04 17:21     ` [External] : " Drew Adams
2023-02-04 18:32       ` Jean Louis
2023-02-04 21:51         ` Emanuel Berg
2023-02-07  8:34           ` Jean Louis
2023-02-07 10:26             ` Emanuel Berg
2023-02-07 22:39           ` Jean Louis
2023-02-08  2:48             ` Drew Adams
2023-02-08 18:46               ` Drew Adams
2023-02-08 20:09               ` Jean Louis
2023-02-04 18:28     ` Jean Louis
2023-02-04 21:41       ` Emanuel Berg
2023-02-07  8:33         ` Jean Louis
2023-02-07 10:30           ` Emanuel Berg
2023-02-07 14:55             ` [External] : " Drew Adams
2023-02-07 14:55           ` Drew Adams
2023-02-04 21:44       ` Samuel Wales
2023-02-04 21:49         ` Samuel Wales
2023-02-04 14:59   ` Emanuel Berg
2023-02-07  7:35     ` Jean Louis
2023-02-07 10:27       ` Emanuel Berg
2023-02-11  8:18 ` James Thomas
2023-02-11 14:02 ` Ruijie Yu via Users list for the GNU Emacs text editor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.