Support search= with newlines
See original GitHub issueI am new to bumpversion. When I understand it right, it is only possbile to search for complete version strings, right?
Isn’t it possible to handle code like this?
_APPVER_MAJOR = 0
_APPVER_MINOR = 0
_APPVER_REVISION = 1
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How do I include newlines in a search in less? - Super User
You can do: /pattern$. The pattern replacing pattern , but the $ must stay, it tells the search to look for the pattern,...
Read more >Find and replace with a newline in Visual Studio Code
In the local searchbox ( ctrl + f ) you can insert newlines by pressing ctrl + enter . Image of multiline search...
Read more >Find and replace with a newline in Visual Studio Code
In the local searchbox ( Ctrl + F ) you can insert newlines by pressing Ctrl + Enter . multiple-line-support.gif (Local searchbox).
Read more >Way to do do search/replace adding linebreaks?
Type replacement pattern: for line break it will be \n. Hit "Replace" or "Replace All". 7.
Read more >vim search around line breaks - Unix & Linux Stack Exchange
I personally would use [ \t\n]* instead of spaces. This will match on zero or more of ' ', tab, and newline. This...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, so this is how it could work:
vars.py
.bumpversion.cfg
However, when executing that, search doesn’t support multiline yet:
but it should.
Maybe
\
at the end of a line, to escape the invisible newline character?Or, wrap text quotes or something similar. So you can explicitly include newlines.
Maybe it is another problem, but the current config doesn’t need quotes, they even get striped. With that you can’t search for
"1.0.1"
with leaving1.0.1
alone.