Benjamin-Loison / xed

X-Apps [Text] Editor (Cross-DE, backward-compatible, GTK3, traditional UI)
GNU General Public License v2.0
0 stars 0 forks source link

Replace within current selection #5

Open Benjamin-Loison opened 4 months ago

Benjamin-Loison commented 4 months ago
Alternatively can use: ```python import re MY_STRING = 'XXXX:XXXX:XXX:XXXX:XXXX:XXXX:XXXX:XXXX#53' print(re.sub('[a-f0-9]', 'X', MY_STRING)) ```

It is more precise than replacing with CENSORED.

+9

Default issue content: ``` * Xed version (xed --version) * Distribution - (Mint 17.2, Arch, Fedora 25, etc...) ``` **Issue** **Steps to reproduce** **Expected behaviour** **Other information**
Benjamin-Loison commented 2 months ago

By default xed seems to use a monospace font, hence can just copy-paste the secret to a new tab, add a new line, type Xs until have the same length with above line and copy-paste to previous tab. Can use the following comment #issuecomment-2376695887 method on the new tab.

Benjamin-Loison commented 1 month ago

Once this feature is implemented could use a regex . to replace with X that way it would work with the whole selection. It is not complicated and would not require to restore this regex until I change last Replace with as far as I remember.

Benjamin-Loison commented 1 month ago

I verified all settings, even Edit > Preferences and found nothing relevant.

Benjamin-Loison commented 1 month ago

Related to Webscrap_any_website/issues/30.

Benjamin-Loison commented 2 weeks ago

Notepad++ has this feature but is officially only available on Windows (source: Wikipedia: Notepad++ (1250479925)).

Benjamin-Loison commented 2 weeks ago

Alternatively can use:

xclip -selection clipboard -out | sed s/./X/g | xclip -selection clipboard

that is:

paste | sed 's/./X/g' | clip

Would be nice if go back to previous window (for instance possibly by minimizing current gnome-terminal one) and paste to replace selected string.