الأربعاء، 18 يناير 2023
Show HN: Codex – Find and Replace for Code https://ift.tt/QXTJerq
Show HN: Codex – Find and Replace for Code Most code editors' find & replace features are still very close to the original design intended for text documents, so they become unwieldy when you need to match across newlines and indentation for example, or when a parse of the code is necessary to capture a particular expression. Codex ( https://ift.tt/zeyK5oQ ) is an attempt to rethink what find & replace should look like in a modern code editor. It defines a simple but powerful syntax for describing code modifications, combining plain text, regular expressions and Tree-sitter queries, along with sensible handling of newlines and indentation*. It can be used just like regular plain text find & replace, but allows freely mixing in regexes and Tree-sitter queries as more flexibility is needed. It introduces "line quantifiers" for matching a bunch of lines at the same nesting level, so basic structural changes can be achieved without even using a query (see the JavaScript function example in the link). I designed Codex with a specific use case in mind (the one I show in my demo video: https://www.youtube.com/watch?v=MQ_N0-AJ2Qg ), so any suggestions for other things it should support would be much appreciated, as well as general feedback. *Indentation is relative and space/tab agnostic. https://ift.tt/zeyK5oQ January 18, 2023 at 11:56AM
الاشتراك في:
تعليقات الرسالة (Atom)
������ �����
خدمات طبيه https://www.cut-titles.com/Y4ZR
-
البقدونس :الفوائد والمضار البقدونس له فوائد وخاصة المغلي ولذلك سنركز في هذه المقالة على فوائد ومضار البقدونس المغلي ...
-
عملية تصحيح البصر في تركيا- التلكفة والمميزات2019 عملية تصحيح النظر وكما يبدو من الاسم هي وسيلة لتصحيح ما أصاب العين من ضعف ...
-
https://ift.tt/2TqClyp via /r/aww https://ift.tt/365Bzd8
-
Show HN: Typed parser combinator library with error recovery for Python https://ift.tt/W0f3CJd March 31, 2022 at 11:37PM
-
Show HN: Aoi – Auto-load database schema to ChatGPT and execute SQL https://ift.tt/s7jKUCh March 21, 2023 at 04:02AM
-
Medical News Today: Can meditation, hypnosis, and CBT help address the opioid crisis? A new review and meta-analysis has concluded that medi...
ليست هناك تعليقات:
إرسال تعليق