#occur : to meet; to clash

- French: arrive

- German: auftreten

- Portuguese: ocorrer

- Spanish: ocurrir

------------

Fill in missing or incorrect translations @ https://wordofthehour.org/r/translations

We need your help!! Help us improve our translations. :)

We rely on community members to help us improve our translations. If you are a native speaker in one of our supported languages, we strongly...

#occur : to meet; to clash

- French: arrive

- German: auftreten

- Portuguese: ocorrer

- Spanish: ocurrir

------------

Fill in missing or incorrect translations @ https://wordofthehour.org/r/translations

We need your help!! Help us improve our translations. :)

We rely on community members to help us improve our translations. If you are a native speaker in one of our supported languages, we strongly...

#occur : to meet; to clash

- French: arrive

- German: auftreten

- Portuguese: ocorrer

- Spanish: ocurrir

------------

See previous words @ https://wordofthehour.org/r/past

Word of The Hour

Word of the Hour helps expand your vocabulary. Every hour, a new vocabulary word is featured along with translations into 10+ languages including French, German, Hindi, Italian, Portuguese, Spanish, and more. We are supported by our warm and welcoming community on Reddit.

#occur : to meet; to clash

- French: arrive

- German: auftreten

- Portuguese: ocorrer

- Spanish: ocurrir

------------

See previous words @ https://wordofthehour.org/r/past

Word of The Hour

Word of the Hour helps expand your vocabulary. Every hour, a new vocabulary word is featured along with translations into 10+ languages including French, German, Hindi, Italian, Portuguese, Spanish, and more. We are supported by our warm and welcoming community on Reddit.

ah damn, i was looking for this for ages ..

emacs occur can accept a subgroup number and only list that instead of the whole line

https://emacs.stackexchange.com/a/12964

#emacs #re #occur

Get all regexp matches in buffer as a list

On the Code Golf Stack Exchange site today, I found this answer in Clojure to the question "Get all links on a webpage". (->> (slurp "http://www.stroustrup.com") (re-seq #"(?:http://)?...

Emacs Stack Exchange

#occur : to meet; to clash

- French: arrive

- German: auftreten

- Portuguese: ocorrer

- Spanish: ocurre

------------

See previous words @ https://wordofthehour.org/r/past

Word of The Hour

Word of the Hour helps expand your vocabulary. Every hour, a new vocabulary word is featured along with translations into 10+ languages including French, German, Hindi, Italian, Portuguese, Spanish, and more. We are supported by our warm and welcoming community on Reddit.

Magick is the Science and Art of causing Change to occur in conformity with Will.

https://library.hrmtc.com/2024/01/11/magick-is-the-science-and-art-of-causing-change-to-occur-in-conformity-with-will/

Magick is the Science and Art of causing Change to occur in conformity with Will. - The Hermetic Library Blog

Magick is the Science and Art of causing Change to occur in conformity with Will. Aleister Crowley, Introduction and Theorems in Magick in Theory and Practice and Chapter I: What is Magick? in Magick Without Tears Consider also: Guy Fawkes Bandana Mask The Transmutations “In my textbook, Theory and Practice of Magick will be found […]

The Hermetic Library Blog

Another #emacs editing discovery. Every time my thought process goes along the lines of: "I can also do this!?!!"

Today's cast: #occur, #regex isearch, wgrep, and optionally keyboard macros, iedit and wdired.

(h/t This thread: https://emacs.ch/@ramin_hal9001/110933437057616428.
@ramin_hal9001 and @cwebber were mentioning many cools emacs tips and I learnt that I can *edit* what comes out of occur!)

TIL that you can switch from isearch to occur mid search! So you can do something like:
1. Start incremental (regexp) search in an editable buffer.
2. Once satisfied with the regex/search term, Do `M-s o` to have all matching lines end up in an occur buffer.
3. Press `e` to enable wgrep giving you an editable buffer with only matching lines.
4. Do whatever editing you like: iedit, regex replace, keyboard macros, whatever.
5. `C-c C-c` when done and the changes get reflected in *original buffer*.

Triggering occur after incremental search gets you the best of both worlds: the visual feedback on the regexp search helping to interactively adjust it. You jump to occur only when you're satisfied with the matches. It will be as if you had magically typed out that complex regexp free-hand.

Ramin Honary (@[email protected])

<p>@[email protected] <blockquote><p></p>> "I knew M-x occur was awesome, and I already used it a lot, but I learned" ...<p>> ... "e: enable editing definitions directly from the *Occur* buffer!!!!"</p></blockquote></p> <p>Oh it gets even better. Try this one out:</p> <p><ol><li><code>dired-toggle-read-only</code> (usually bound to "<code>C-x C-q</code>"), now the Dired buffer is editable — you can change the names of files and later choose to commit those changes to disk</li> <li>use <code>occur</code> (usually bound to "<code>M-s o</code>") to narrow down the listed files in the Dired buffer , then use <code>occur-edit-mode</code></li> <li>in the Occur buffer, use <code>occur-edit-mode</code> (bound to the "<code>e</code>" key) to make the occur buffer editable</li> <li>Use any number of <code>query-replace</code> ("<code>M-%</code>") or <code>query-replace-regexp</code> ("<code>C-M-%</code>") to rename any of the files in the Occur buffer.</li> <li><code>occur-cease-edit</code> ("<code>C-c C-c</code>") to commit changes from the Occur buffer to the Dired buffer</li> <li><code>wdired-finish-edit</code> (also bound to "<code>C-c C-c</code>") to commit those changes in the Dired buffer to the filesystem.</li></ol></p> <p>In my opinion, this is probably the safest, most reliable way to do bulk file renaming.</p> <p>I use this workflow quite often, especially when preparing datasets for machine learning processes. #Emacs</p>

Emacs.ch

#occur : to meet; to clash

- French: arrive

- German: auftreten

- Portuguese: ocorrer

- Spanish: ocurre

------------

See previous words @ https://wordofthehour.org/r/past

Word of The Hour

Word of the Hour helps expand your vocabulary. Every hour, a new vocabulary word is featured along with translations into 10+ languages including French, German, Hindi, Italian, Portuguese, Spanish, and more. We are supported by our warm and welcoming community on Reddit.

#occur : to meet; to clash

- French: arrive

- German: auftreten

- Portuguese: ocorrer

- Spanish: ocurre

------------

See previous words @ https://wordofthehour.org/r/past

Word of The Hour

Word of the Hour helps expand your vocabulary. Every hour, a new vocabulary word is featured along with translations into 10+ languages including French, German, Hindi, Italian, Portuguese, Spanish, and more. We are supported by our warm and welcoming community on Reddit.