Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8790af12e8 | |||
| ad00d0c53e | |||
| e8b06dedda | |||
| 72394f9cdb | |||
| 4ed5242b82 | |||
| 5974bb4dc5 | |||
| dacc81b252 | |||
| 061e84bf57 | |||
| 64c3a663bd | |||
| 7893315fbc |
@@ -1,16 +1,22 @@
|
|||||||
|
config-version = 2
|
||||||
|
|
||||||
start-at-login = true
|
start-at-login = true
|
||||||
|
|
||||||
after-login-command = []
|
after-login-command = []
|
||||||
after-startup-command = [
|
after-startup-command = [
|
||||||
'exec-and-forget borders active_color=0xff88c0d0 inactive_color=0xff4c566a width=3.0',
|
'exec-and-forget borders active_color=0xff88c0d0 inactive_color=0xff4c566a width=3.0',
|
||||||
|
'workspace 1',
|
||||||
|
'layout h_accordion',
|
||||||
'workspace 3',
|
'workspace 3',
|
||||||
'layout accordion horizontal'
|
'layout h_accordion'
|
||||||
]
|
]
|
||||||
|
|
||||||
enable-normalization-flatten-containers = true
|
enable-normalization-flatten-containers = true
|
||||||
enable-normalization-opposite-orientation-for-nested-containers = true
|
enable-normalization-opposite-orientation-for-nested-containers = true
|
||||||
automatically-unhide-macos-hidden-apps = true
|
automatically-unhide-macos-hidden-apps = true
|
||||||
|
|
||||||
|
persistent-workspaces = ['1', '2', '3', '4', '5', '6', '7', '8', '9']
|
||||||
|
|
||||||
default-root-container-layout = 'tiles' # Possible values: tiles|accordion
|
default-root-container-layout = 'tiles' # Possible values: tiles|accordion
|
||||||
default-root-container-orientation = 'auto' # Possible values: horizontal|vertical|auto
|
default-root-container-orientation = 'auto' # Possible values: horizontal|vertical|auto
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
#? Config file for btop v. 1.4.0
|
#? Config file for btop v.1.4.6
|
||||||
|
|
||||||
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
|
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
|
||||||
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
|
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
|
||||||
color_theme = "nord.theme"
|
color_theme = "nord.theme"
|
||||||
|
|
||||||
#* If the theme set background should be shown, set to False if you want terminal background transparency.
|
#* If the theme set background should be shown, set to False if you want terminal background transparency.
|
||||||
theme_background = False
|
theme_background = false
|
||||||
|
|
||||||
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
|
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
|
||||||
truecolor = True
|
truecolor = true
|
||||||
|
|
||||||
#* Set to true to force tty mode regardless if a real tty has been detected or not.
|
#* Set to true to force tty mode regardless if a real tty has been detected or not.
|
||||||
#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols.
|
#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols.
|
||||||
force_tty = False
|
force_tty = false
|
||||||
|
|
||||||
#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets.
|
#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets.
|
||||||
#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box.
|
#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box.
|
||||||
@@ -22,10 +22,13 @@ presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:defaul
|
|||||||
|
|
||||||
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
|
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
|
||||||
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
|
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
|
||||||
vim_keys = False
|
vim_keys = false
|
||||||
|
|
||||||
#* Rounded corners on boxes, is ignored if TTY mode is ON.
|
#* Rounded corners on boxes, is ignored if TTY mode is ON.
|
||||||
rounded_corners = True
|
rounded_corners = true
|
||||||
|
|
||||||
|
#* Use terminal synchronized output sequences to reduce flickering on supported terminals.
|
||||||
|
terminal_sync = true
|
||||||
|
|
||||||
#* Default symbols to use for graph creation, "braille", "block" or "tty".
|
#* Default symbols to use for graph creation, "braille", "block" or "tty".
|
||||||
#* "braille" offers the highest resolution but might not be included in all fonts.
|
#* "braille" offers the highest resolution but might not be included in all fonts.
|
||||||
@@ -57,37 +60,40 @@ update_ms = 1000
|
|||||||
proc_sorting = "cpu direct"
|
proc_sorting = "cpu direct"
|
||||||
|
|
||||||
#* Reverse sorting order, True or False.
|
#* Reverse sorting order, True or False.
|
||||||
proc_reversed = False
|
proc_reversed = false
|
||||||
|
|
||||||
#* Show processes as a tree.
|
#* Show processes as a tree.
|
||||||
proc_tree = True
|
proc_tree = true
|
||||||
|
|
||||||
#* Use the cpu graph colors in the process list.
|
#* Use the cpu graph colors in the process list.
|
||||||
proc_colors = True
|
proc_colors = true
|
||||||
|
|
||||||
#* Use a darkening gradient in the process list.
|
#* Use a darkening gradient in the process list.
|
||||||
proc_gradient = True
|
proc_gradient = true
|
||||||
|
|
||||||
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
|
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
|
||||||
proc_per_core = False
|
proc_per_core = false
|
||||||
|
|
||||||
#* Show process memory as bytes instead of percent.
|
#* Show process memory as bytes instead of percent.
|
||||||
proc_mem_bytes = True
|
proc_mem_bytes = true
|
||||||
|
|
||||||
#* Show cpu graph for each process.
|
#* Show cpu graph for each process.
|
||||||
proc_cpu_graphs = True
|
proc_cpu_graphs = true
|
||||||
|
|
||||||
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
|
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
|
||||||
proc_info_smaps = False
|
proc_info_smaps = false
|
||||||
|
|
||||||
#* Show proc box on left side of screen instead of right.
|
#* Show proc box on left side of screen instead of right.
|
||||||
proc_left = False
|
proc_left = false
|
||||||
|
|
||||||
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
|
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
|
||||||
proc_filter_kernel = False
|
proc_filter_kernel = false
|
||||||
|
|
||||||
#* In tree-view, always accumulate child process resources in the parent process.
|
#* In tree-view, always accumulate child process resources in the parent process.
|
||||||
proc_aggregate = False
|
proc_aggregate = false
|
||||||
|
|
||||||
|
#* Should cpu and memory usage display be preserved for dead processes when paused.
|
||||||
|
keep_dead_proc_usage = false
|
||||||
|
|
||||||
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
|
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
|
||||||
#* Select from a list of detected attributes from the options menu.
|
#* Select from a list of detected attributes from the options menu.
|
||||||
@@ -98,25 +104,28 @@ cpu_graph_upper = "total"
|
|||||||
cpu_graph_lower = "total"
|
cpu_graph_lower = "total"
|
||||||
|
|
||||||
#* Toggles if the lower CPU graph should be inverted.
|
#* Toggles if the lower CPU graph should be inverted.
|
||||||
cpu_invert_lower = True
|
cpu_invert_lower = true
|
||||||
|
|
||||||
#* Set to True to completely disable the lower CPU graph.
|
#* Set to True to completely disable the lower CPU graph.
|
||||||
cpu_single_graph = False
|
cpu_single_graph = false
|
||||||
|
|
||||||
#* Show cpu box at bottom of screen instead of top.
|
#* Show cpu box at bottom of screen instead of top.
|
||||||
cpu_bottom = False
|
cpu_bottom = false
|
||||||
|
|
||||||
#* Shows the system uptime in the CPU box.
|
#* Shows the system uptime in the CPU box.
|
||||||
show_uptime = True
|
show_uptime = true
|
||||||
|
|
||||||
|
#* Shows the CPU package current power consumption in watts. Requires running `make setcap` or `make setuid` or running with sudo.
|
||||||
|
show_cpu_watts = true
|
||||||
|
|
||||||
#* Show cpu temperature.
|
#* Show cpu temperature.
|
||||||
check_temp = True
|
check_temp = true
|
||||||
|
|
||||||
#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors.
|
#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors.
|
||||||
cpu_sensor = "Auto"
|
cpu_sensor = "Auto"
|
||||||
|
|
||||||
#* Show temperatures for cpu cores also if check_temp is True and sensors has been found.
|
#* Show temperatures for cpu cores also if check_temp is True and sensors has been found.
|
||||||
show_coretemp = True
|
show_coretemp = true
|
||||||
|
|
||||||
#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core.
|
#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core.
|
||||||
#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine.
|
#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine.
|
||||||
@@ -128,63 +137,63 @@ cpu_core_map = ""
|
|||||||
temp_scale = "celsius"
|
temp_scale = "celsius"
|
||||||
|
|
||||||
#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024.
|
#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024.
|
||||||
base_10_sizes = False
|
base_10_sizes = false
|
||||||
|
|
||||||
#* Show CPU frequency.
|
#* Show CPU frequency.
|
||||||
show_cpu_freq = True
|
show_cpu_freq = true
|
||||||
|
|
||||||
#* Draw a clock at top of screen, formatting according to strftime, empty string to disable.
|
#* Draw a clock at top of screen, formatting according to strftime, empty string to disable.
|
||||||
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
|
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
|
||||||
clock_format = "[/uptime]-[%H:%M %Y-%d-%m]"
|
clock_format = "[/uptime]-[%H:%M %Y-%d-%m]"
|
||||||
|
|
||||||
#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort.
|
#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort.
|
||||||
background_update = False
|
background_update = false
|
||||||
|
|
||||||
#* Custom cpu model name, empty string to disable.
|
#* Custom cpu model name, empty string to disable.
|
||||||
custom_cpu_name = ""
|
custom_cpu_name = ""
|
||||||
|
|
||||||
#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ".
|
#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ".
|
||||||
#* Begin line with "exclude=" to change to exclude filter, otherwise defaults to "most include" filter. Example: disks_filter="exclude=/boot /home/user".
|
#* Only disks matching the filter will be shown. Prepend exclude= to only show disks not matching the filter. Examples: disk_filter="/boot /home/user", disks_filter="exclude=/boot /home/user"
|
||||||
disks_filter = ""
|
disks_filter = ""
|
||||||
|
|
||||||
#* Show graphs instead of meters for memory values.
|
#* Show graphs instead of meters for memory values.
|
||||||
mem_graphs = True
|
mem_graphs = true
|
||||||
|
|
||||||
#* Show mem box below net box instead of above.
|
#* Show mem box below net box instead of above.
|
||||||
mem_below_net = False
|
mem_below_net = false
|
||||||
|
|
||||||
#* Count ZFS ARC in cached and available memory.
|
#* Count ZFS ARC in cached and available memory.
|
||||||
zfs_arc_cached = True
|
zfs_arc_cached = true
|
||||||
|
|
||||||
#* If swap memory should be shown in memory box.
|
#* If swap memory should be shown in memory box.
|
||||||
show_swap = True
|
show_swap = true
|
||||||
|
|
||||||
#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk.
|
#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk.
|
||||||
swap_disk = True
|
swap_disk = true
|
||||||
|
|
||||||
#* If mem box should be split to also show disks info.
|
#* If mem box should be split to also show disks info.
|
||||||
show_disks = False
|
show_disks = false
|
||||||
|
|
||||||
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
|
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
|
||||||
only_physical = True
|
only_physical = true
|
||||||
|
|
||||||
#* Read disks list from /etc/fstab. This also disables only_physical.
|
#* Read disks list from /etc/fstab. This also disables only_physical.
|
||||||
use_fstab = True
|
use_fstab = true
|
||||||
|
|
||||||
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
|
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
|
||||||
zfs_hide_datasets = False
|
zfs_hide_datasets = false
|
||||||
|
|
||||||
#* Set to true to show available disk space for privileged users.
|
#* Set to true to show available disk space for privileged users.
|
||||||
disk_free_priv = False
|
disk_free_priv = false
|
||||||
|
|
||||||
#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view.
|
#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view.
|
||||||
show_io_stat = True
|
show_io_stat = true
|
||||||
|
|
||||||
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
|
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
|
||||||
io_mode = True
|
io_mode = true
|
||||||
|
|
||||||
#* Set to True to show combined read/write io graphs in io mode.
|
#* Set to True to show combined read/write io graphs in io mode.
|
||||||
io_graph_combined = False
|
io_graph_combined = false
|
||||||
|
|
||||||
#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ".
|
#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ".
|
||||||
#* Example: "/mnt/media:100 /:20 /boot:1".
|
#* Example: "/mnt/media:100 /:20 /boot:1".
|
||||||
@@ -196,23 +205,29 @@ net_download = 100
|
|||||||
net_upload = 100
|
net_upload = 100
|
||||||
|
|
||||||
#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest.
|
#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest.
|
||||||
net_auto = True
|
net_auto = true
|
||||||
|
|
||||||
#* Sync the auto scaling for download and upload to whichever currently has the highest scale.
|
#* Sync the auto scaling for download and upload to whichever currently has the highest scale.
|
||||||
net_sync = True
|
net_sync = true
|
||||||
|
|
||||||
#* Starts with the Network Interface specified here.
|
#* Starts with the Network Interface specified here.
|
||||||
net_iface = ""
|
net_iface = ""
|
||||||
|
|
||||||
|
#* "True" shows bitrates in base 10 (Kbps, Mbps). "False" shows bitrates in binary sizes (Kibps, Mibps, etc.). "Auto" uses base_10_sizes.
|
||||||
|
base_10_bitrate = "Auto"
|
||||||
|
|
||||||
#* Show battery stats in top right if battery is present.
|
#* Show battery stats in top right if battery is present.
|
||||||
show_battery = True
|
show_battery = true
|
||||||
|
|
||||||
#* Which battery to use if multiple are present. "Auto" for auto detection.
|
#* Which battery to use if multiple are present. "Auto" for auto detection.
|
||||||
selected_battery = "Auto"
|
selected_battery = "Auto"
|
||||||
|
|
||||||
#* Show power stats of battery next to charge indicator.
|
#* Show power stats of battery next to charge indicator.
|
||||||
show_battery_watts = True
|
show_battery_watts = true
|
||||||
|
|
||||||
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
|
#* Set loglevel for "~/.local/state/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
|
||||||
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
|
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
|
||||||
log_level = "WARNING"
|
log_level = "WARNING"
|
||||||
|
|
||||||
|
#* Automatically save current settings to config file on exit.
|
||||||
|
save_config_on_exit = true
|
||||||
|
|||||||
+10
-10
@@ -37,9 +37,9 @@
|
|||||||
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
||||||
"markdown.nvim": { "branch": "master", "commit": "dfa0d2def6dbf77e9206b16dc90cad4dd23d55d2" },
|
"markdown.nvim": { "branch": "master", "commit": "dfa0d2def6dbf77e9206b16dc90cad4dd23d55d2" },
|
||||||
"markview.nvim": { "branch": "main", "commit": "de79a7626d54d7785436105ef72f37ee8fe8fa16" },
|
"markview.nvim": { "branch": "main", "commit": "de79a7626d54d7785436105ef72f37ee8fe8fa16" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "155eac5d8609a2f110041f8ac3491664cc126354" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "a979821a975897b88493843301950c456a725982" },
|
||||||
"mason-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" },
|
"mason-tool-installer.nvim": { "branch": "main", "commit": "443f1ef8b5e6bf47045cb2217b6f748a223cf7dc" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
|
||||||
"mdeval.nvim": { "branch": "master", "commit": "0e1b248db174a9659a9ab16eb8c90ff3aec55264" },
|
"mdeval.nvim": { "branch": "master", "commit": "0e1b248db174a9659a9ab16eb8c90ff3aec55264" },
|
||||||
"mkdnflow.nvim": { "branch": "main", "commit": "d459bd7ce68910272038ed037c028180161fd14d" },
|
"mkdnflow.nvim": { "branch": "main", "commit": "d459bd7ce68910272038ed037c028180161fd14d" },
|
||||||
"moveline.nvim": { "branch": "main", "commit": "570603637be8af20e97b91cf554fef29cab73ca6" },
|
"moveline.nvim": { "branch": "main", "commit": "570603637be8af20e97b91cf554fef29cab73ca6" },
|
||||||
@@ -51,19 +51,19 @@
|
|||||||
"nvim-foldsign": { "branch": "master", "commit": "cd45e684ccfdd4fb7d92c64101794917d172078f" },
|
"nvim-foldsign": { "branch": "master", "commit": "cd45e684ccfdd4fb7d92c64101794917d172078f" },
|
||||||
"nvim-lint": { "branch": "master", "commit": "335a6044be16d7701001059cba9baa36fbeef422" },
|
"nvim-lint": { "branch": "master", "commit": "335a6044be16d7701001059cba9baa36fbeef422" },
|
||||||
"nvim-lsp-file-operations": { "branch": "master", "commit": "9744b738183a5adca0f916527922078a965515ed" },
|
"nvim-lsp-file-operations": { "branch": "master", "commit": "9744b738183a5adca0f916527922078a965515ed" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "b8c3630ce37dfbe51910b68785a71620b072c41a" },
|
"nvim-lspconfig": { "branch": "master", "commit": "46204c8fdaa36a9aa3768780450e4bc7a210025f" },
|
||||||
"nvim-navic": { "branch": "master", "commit": "d0a8c17c4dc721b00bc2ac305c6ffbb036beeb74" },
|
"nvim-navic": { "branch": "master", "commit": "d0a8c17c4dc721b00bc2ac305c6ffbb036beeb74" },
|
||||||
"nvim-notify": { "branch": "master", "commit": "a22f5d7ac511c2df2fd3290a9f04c48d5a822e2e" },
|
"nvim-notify": { "branch": "master", "commit": "a22f5d7ac511c2df2fd3290a9f04c48d5a822e2e" },
|
||||||
"nvim-prose": { "branch": "main", "commit": "38aac8c9c94a5725d152bdfea374d60e07fb93d6" },
|
"nvim-prose": { "branch": "main", "commit": "38aac8c9c94a5725d152bdfea374d60e07fb93d6" },
|
||||||
"nvim-surround": { "branch": "main", "commit": "8dd9150ca7eae5683660ea20cec86edcd5ca4046" },
|
"nvim-surround": { "branch": "main", "commit": "8dd9150ca7eae5683660ea20cec86edcd5ca4046" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "87d096a39cb2d5d43e6771563575ff042a79f48b" },
|
"nvim-tree.lua": { "branch": "master", "commit": "87d096a39cb2d5d43e6771563575ff042a79f48b" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
"nvim-treesitter": { "branch": "master", "commit": "cf12346a3414fa1b06af75c79faebe7f76df080a" },
|
||||||
"nvim-treesitter-context": { "branch": "master", "commit": "41847d3dafb5004464708a3db06b14f12bde548a" },
|
"nvim-treesitter-context": { "branch": "master", "commit": "adf4b6b0420b7be6c717ef0ac7993183d6c201b1" },
|
||||||
"nvim-treesitter-refactor": { "branch": "master", "commit": "d8b74fa87afc6a1e97b18da23e762efb032dc270" },
|
"nvim-treesitter-refactor": { "branch": "master", "commit": "9cc0d22becf72e18808208cd0ce85032a2b19c6f" },
|
||||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" },
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "5ca4aaa6efdcc59be46b95a3e876300cfead05ef" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "8e1c0a389f20bf7f5b0dd0e00306c1247bda2595" },
|
||||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" },
|
"nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "b8221e42cf7287c4dcde81f232f58d7b947c210d" },
|
"nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" },
|
||||||
"oil.nvim": { "branch": "master", "commit": "08c2bce8b00fd780fb7999dbffdf7cd174e896fb" },
|
"oil.nvim": { "branch": "master", "commit": "08c2bce8b00fd780fb7999dbffdf7cd174e896fb" },
|
||||||
"onenord.nvim": { "branch": "main", "commit": "dbf4c848929c473ec548a080fc32cb85aa2af706" },
|
"onenord.nvim": { "branch": "main", "commit": "dbf4c848929c473ec548a080fc32cb85aa2af706" },
|
||||||
"outline.nvim": { "branch": "main", "commit": "321f89ef79f168a78685f70d70c52d0e7b563abb" },
|
"outline.nvim": { "branch": "main", "commit": "321f89ef79f168a78685f70d70c52d0e7b563abb" },
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ autocmd('FileType', {
|
|||||||
o.breakindent = true
|
o.breakindent = true
|
||||||
o.textwidth = 80
|
o.textwidth = 80
|
||||||
o.spell = true
|
o.spell = true
|
||||||
|
o.scrolloff = 999 -- center active line
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
local group = vim.api.nvim_create_augroup('NotesAutosave', { clear = true })
|
||||||
|
|
||||||
|
local note_filetypes = {
|
||||||
|
markdown = true,
|
||||||
|
telekasten = true,
|
||||||
|
}
|
||||||
|
|
||||||
|
local function should_save(buf)
|
||||||
|
if not vim.api.nvim_buf_is_valid(buf) then return false end
|
||||||
|
if not note_filetypes[vim.bo[buf].filetype] then return false end
|
||||||
|
if not vim.bo[buf].modified then return false end
|
||||||
|
if vim.bo[buf].readonly or not vim.bo[buf].modifiable then return false end
|
||||||
|
if vim.api.nvim_buf_get_name(buf) == '' then return false end
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
local function save(buf)
|
||||||
|
if should_save(buf) then vim.api.nvim_buf_call(buf, function()
|
||||||
|
vim.cmd('silent! write')
|
||||||
|
end) end
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd({
|
||||||
|
'BufLeave',
|
||||||
|
'WinLeave',
|
||||||
|
'FocusLost',
|
||||||
|
'InsertLeave',
|
||||||
|
}, {
|
||||||
|
group = group,
|
||||||
|
callback = function(args)
|
||||||
|
save(args.buf)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd({
|
||||||
|
'CursorHold',
|
||||||
|
'CursorHoldI',
|
||||||
|
}, {
|
||||||
|
group = group,
|
||||||
|
callback = function(args)
|
||||||
|
save(args.buf)
|
||||||
|
end,
|
||||||
|
})
|
||||||
@@ -2,3 +2,4 @@ require('core.options')
|
|||||||
require('core.keymap')
|
require('core.keymap')
|
||||||
require('core.autocmds')
|
require('core.autocmds')
|
||||||
require('core.filetypes')
|
require('core.filetypes')
|
||||||
|
require('core.autosave')
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ o.clipboard:append('unnamedplus') -- use system clipboard as the default registe
|
|||||||
o.cdhome = false -- :cd shows cwd
|
o.cdhome = false -- :cd shows cwd
|
||||||
o.backspace = 'indent,eol,start'
|
o.backspace = 'indent,eol,start'
|
||||||
o.spelllang = 'en_us'
|
o.spelllang = 'en_us'
|
||||||
|
o.updatetime = 30000 -- AutoSave interval = 30 seconds
|
||||||
-- ───────────────────────────────────────────────────── appearance ──
|
-- ───────────────────────────────────────────────────── appearance ──
|
||||||
o.showmode = false
|
o.showmode = false
|
||||||
o.termguicolors = true
|
o.termguicolors = true
|
||||||
|
|||||||
@@ -102,7 +102,6 @@ return {
|
|||||||
'yamlls',
|
'yamlls',
|
||||||
'jsonls',
|
'jsonls',
|
||||||
'taplo',
|
'taplo',
|
||||||
'systemd_ls',
|
|
||||||
|
|
||||||
-- Web / frontend
|
-- Web / frontend
|
||||||
'html',
|
'html',
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ return {
|
|||||||
'NvimTreeFindFileToggle',
|
'NvimTreeFindFileToggle',
|
||||||
'NvimTreeCollapse',
|
'NvimTreeCollapse',
|
||||||
'NvimTreeRefresh',
|
'NvimTreeRefresh',
|
||||||
|
'NvimTreeFindFile',
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
vim.g.disable_netrw = false
|
vim.g.disable_netrw = false
|
||||||
|
|||||||
@@ -24,40 +24,21 @@ local function open_review(kind, filename, template, vars)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>zM', function()
|
local function tk(cmd)
|
||||||
local y = os.date('%Y')
|
vim.cmd('Telekasten ' .. cmd)
|
||||||
local m = os.date('%m')
|
|
||||||
|
|
||||||
open_review('monthly', y .. '-' .. m, 'monthly-review.md', {
|
vim.schedule(function()
|
||||||
title = os.date('%B %Y'),
|
vim.cmd('filetype detect')
|
||||||
date = os.date('%Y-%m-%d'),
|
|
||||||
year = y,
|
|
||||||
month = m,
|
|
||||||
})
|
|
||||||
end, { desc = 'Open monthly review' })
|
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>zQ', function()
|
if vim.bo.filetype == '' and vim.fn.expand('%:e') == 'md' then vim.bo.filetype = 'markdown' end
|
||||||
local y = os.date('%Y')
|
|
||||||
local m = tonumber(os.date('%m'))
|
|
||||||
local q = tostring(math.floor((m - 1) / 3) + 1)
|
|
||||||
|
|
||||||
open_review('quarterly', y .. '-Q' .. q, 'quarterly-review.md', {
|
vim.schedule(function()
|
||||||
title = y .. ' Q' .. q,
|
vim.cmd('edit')
|
||||||
date = os.date('%Y-%m-%d'),
|
-- vim.cmd('doautocmd FileType markdown')
|
||||||
year = y,
|
vim.cmd('redraw!')
|
||||||
quarter = q,
|
end)
|
||||||
})
|
end)
|
||||||
end, { desc = 'Open quarterly review' })
|
end
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>zY', function()
|
|
||||||
local y = os.date('%Y')
|
|
||||||
|
|
||||||
open_review('yearly', y, 'yearly-review.md', {
|
|
||||||
title = y .. ' Yearly Review',
|
|
||||||
date = os.date('%Y-%m-%d'),
|
|
||||||
year = y,
|
|
||||||
})
|
|
||||||
end, { desc = 'Open yearly review' })
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('BufEnter', {
|
vim.api.nvim_create_autocmd('BufEnter', {
|
||||||
callback = function(args)
|
callback = function(args)
|
||||||
@@ -172,7 +153,10 @@ return {
|
|||||||
{ desc = 'Find notes linking to note under the cursor' }
|
{ desc = 'Find notes linking to note under the cursor' }
|
||||||
),
|
),
|
||||||
vim.keymap.set('n', '<leader>zs', '<cmd>Telekasten search_notes<cr>', { desc = 'Search in notes' }),
|
vim.keymap.set('n', '<leader>zs', '<cmd>Telekasten search_notes<cr>', { desc = 'Search in notes' }),
|
||||||
vim.keymap.set('n', '<leader>zT', '<cmd>Telekasten goto_today<cr>', { desc = "Open today's daily note" }),
|
-- vim.keymap.set('n', '<leader>zT', '<cmd>Telekasten goto_today<cr>', { desc = "Open today's daily note" }),
|
||||||
|
vim.keymap.set('n', '<leader>zT', function()
|
||||||
|
tk('goto_today')
|
||||||
|
end, { desc = "Open today's daily note" }),
|
||||||
vim.keymap.set(
|
vim.keymap.set(
|
||||||
'n',
|
'n',
|
||||||
'<leader>zW',
|
'<leader>zW',
|
||||||
@@ -211,4 +195,39 @@ return {
|
|||||||
|
|
||||||
vim.keymap.set('n', '<leader>zl', '<cmd>Telekasten insert_link<cr>', { desc = 'Link to a note' }),
|
vim.keymap.set('n', '<leader>zl', '<cmd>Telekasten insert_link<cr>', { desc = 'Link to a note' }),
|
||||||
-- vim.keymap.set('i', '[[', '<ESC><cmd>Telekasten insert_link<cr>', { desc = 'Link to a note' }),
|
-- vim.keymap.set('i', '[[', '<ESC><cmd>Telekasten insert_link<cr>', { desc = 'Link to a note' }),
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<leader>zM', function()
|
||||||
|
local y = os.date('%Y')
|
||||||
|
local m = os.date('%m')
|
||||||
|
|
||||||
|
open_review('monthly', y .. '-' .. m, 'monthly-review.md', {
|
||||||
|
title = os.date('%B %Y'),
|
||||||
|
date = os.date('%Y-%m-%d'),
|
||||||
|
year = y,
|
||||||
|
month = m,
|
||||||
|
})
|
||||||
|
end, { desc = 'Open monthly review' }),
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<leader>zQ', function()
|
||||||
|
local y = os.date('%Y')
|
||||||
|
local m = tonumber(os.date('%m'))
|
||||||
|
local q = tostring(math.floor((m - 1) / 3) + 1)
|
||||||
|
|
||||||
|
open_review('quarterly', y .. '-Q' .. q, 'quarterly-review.md', {
|
||||||
|
title = y .. ' Q' .. q,
|
||||||
|
date = os.date('%Y-%m-%d'),
|
||||||
|
year = y,
|
||||||
|
quarter = q,
|
||||||
|
})
|
||||||
|
end, { desc = 'Open quarterly review' }),
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<leader>zY', function()
|
||||||
|
local y = os.date('%Y')
|
||||||
|
|
||||||
|
open_review('yearly', y, 'yearly-review.md', {
|
||||||
|
title = y .. ' Yearly Review',
|
||||||
|
date = os.date('%Y-%m-%d'),
|
||||||
|
year = y,
|
||||||
|
})
|
||||||
|
end, { desc = 'Open yearly review' }),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,3 +58,4 @@ filetypes
|
|||||||
Nunjucks
|
Nunjucks
|
||||||
SLA
|
SLA
|
||||||
onboarding
|
onboarding
|
||||||
|
zettelkasten
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user