Skip to content

Commit

Permalink
[color] rename color_h1 to color_heading
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Nov 26, 2023
1 parent 6a88c0b commit dcc648b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion visidata/cliptext.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def clipdraw_chunks(scr, y, x, chunks, cattr:ColorAttr=ColorAttr(), w=None, clea
def _markdown_to_internal(text):
'Return markdown-formatted `text` converted to internal formatting (like `[:color]text[/]`).'
text = re.sub(r'`(.*?)`', r'[:code]\1[/]', text)
text = re.sub(r'(#.*?)$', r'[:h1]\1[/]', text)
text = re.sub(r'(#.*?)$', r'[:heading]\1[/]', text)
text = re.sub(r'\*\*(.*?)\*\*', r'[:bold]\1[/]', text)
text = re.sub(r'\*(.*?)\*', r'[:italic]\1[/]', text)
text = re.sub(r'\b_(.*?)_\b', r'[:underline]\1[/]', text)
Expand Down
2 changes: 1 addition & 1 deletion visidata/guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class GuideGuide(Sheet):
Column('max_points', type=int, getter=lambda c,r: 100),
]
colorizers = [
RowColorizer(7, 'color_guide_dne', lambda s,c,r,v: r and r[1] not in vd.guides)
RowColorizer(7, 'color_guide_unwritten', lambda s,c,r,v: r and r[1] not in vd.guides)
]
def iterload(self):
i = 0
Expand Down
2 changes: 1 addition & 1 deletion visidata/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
vd.theme_option('color_selected_row', '215 yellow', 'color of selected rows')
vd.theme_option('color_clickable', 'underline', 'color of internally clickable item')
vd.theme_option('color_code', 'bold white on 237', 'color of code sample')
vd.theme_option('color_h1', 'bold 200', 'color of h1 header')
vd.theme_option('color_heading', 'bold 200', 'color of header')
vd.theme_option('color_guide_unwritten', '243 on black', 'color of unwritten guides in GuideGuide')

vd.theme_option('force_256_colors', False, 'use 256 colors even if curses reports fewer')
Expand Down

0 comments on commit dcc648b

Please # to comment.