Skip to content

Commit

Permalink
update rules documentation in replace plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
aahnik committed Dec 12, 2022
1 parent ad52f86 commit 4fe809a
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions tgcf/web_ui/pages/4_🔌_Plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,21 @@
else:
CONFIG.plugins.replace.text = replace_dict

st.markdown(
"""
Replace one word or expression with another.
- Write every replacement in a new line.
- The original text then **a colon `:`** and then **a space** and then the new text.
- Its recommended to use double quotes. Quotes are must when your string contain spaces or special characters.
```
"orginal": "new"
```
- View [docs](https://github.com/aahnik/tgcf/wiki/Replace-Plugin) for advanced usage."""
)
if st.checkbox("Show rules and usage"):
st.markdown(
"""
Replace one word or expression with another.
- Write every replacement in a new line.
- The original text then **a colon `:`** and then **a space** and then the new text.
- Its recommended to use **single quotes**. Quotes are must when your string contain spaces or special characters.
- Double quotes wont work if your regex has the character: `\` .
```
'orginal': 'new'
```
- View [docs](https://github.com/aahnik/tgcf/wiki/Replace-Plugin) for advanced usage."""
)

with st.expander("Caption"):
CONFIG.plugins.caption.check = st.checkbox(
Expand Down

0 comments on commit 4fe809a

Please sign in to comment.