-
Notifications
You must be signed in to change notification settings - Fork 2
/
visidatarc
35 lines (29 loc) · 894 Bytes
/
visidatarc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# VisiData configuration
# KH
#
# General settings
options.color_current_row='reverse 11'
#options.disp_status_fmt='({sheet.cursorRowIndex},{sheet.cursorColIndex}) ' + options.disp_status_fmt
options.disp_float_fmt='{:.3e}'
options.undo=True
options.motd_url=''
#options.command_copy_clipboard='xclip'
# use different colors for positive and negative values
theme('color_negative', 'red', 'color of negative numbers')
def is_neg(s, c, r, v):
return c and v is not None and isinstance(v.value, (int,float)) and int(v.value) < 0
Sheet.colorizers += [ColumnColorizer(2, 'color_negative', is_neg)]
# File formats
#vd.filetype('feather', PandasSheet)
#vd.filetype('parquet', PandasSheet)
# hdf5 blosc compression support
# https://github.com/saulpw/visidata/issues/121
# try:
# import h5py
# except ImportError:
# pass
# try:
# import tables
# except ImportError:
# pass