Update .config/fish/conf.d/30-eza.fish

Remove drapeau.py
Update tags
This commit is contained in:
punkfairie 2024-04-18 18:01:44 -07:00
parent 299d5cd88b
commit 6a1e4f400d
No known key found for this signature in database
GPG key ID: 284B78B49C058673
3 changed files with 2 additions and 64 deletions

View file

@ -5,7 +5,7 @@ function ls --wraps eza
end
function lst --wraps eza
ls --tree $argv
ls --tree --color=always $argv | less
end
function lsl --wraps eza
@ -14,5 +14,5 @@ function lsl --wraps eza
end
function lslt --wraps eza
lsl --tree $argv
lsl --tree --color=always $argv | less
end

View file

@ -1,47 +0,0 @@
#!/usr/bin/python
import os
import toml
def main():
# Chech if config file exists
chezmoi_config_dir = os.path.join(os.environ["HOME"], ".config", "chezmoi")
if os.path.exists(os.path.join(chezmoi_config_dir, "chezmoi.toml")):
chezmoi_config_file = os.path.join(chezmoi_config_dir, "chezmoi.toml")
else:
return "=== ERROR: No chezmoi.toml found ==="
# Load config file into memory
chezmoi_config_dict = toml.load(chezmoi_config_file)
# Extract drapeau data
if "drapeau" not in chezmoi_config_dict["data"]:
chezmoi_config_dict["data"]["drapeau"] = {}
# Get colorscheme
if "colorscheme" in chezmoi_config_dict["data"]["drapeau"]:
drapeau_color_scheme = chezmoi_config_dict["data"]["drapeau"]["colorscheme"]
else:
drapeau_color_scheme = "default"
chezmoi_config_dict["data"]["drapeau"]["colorscheme"] = drapeau_color_scheme
# Find colorscheme files
# Produce dict of {"name": "path"} for all schemes
drapeau_config_dir = os.path.join(os.environ["HOME"], ".config", "drapeau")
if os.path.exists(drapeau_config_dir):
drapeau_color_scheme_files = {".".join(scheme.split(".")[:-1]): os.path.join(drapeau_config_dir, scheme) for scheme in os.listdir(drapeau_config_dir) if os.path.isfile(os.path.join(drapeau_config_dir, scheme))}
else:
drapeau_color_scheme_files = {}
# Extract colorscheme data from desired scheme
drapeau_color_scheme_dict = toml.load(drapeau_color_scheme_files[drapeau_color_scheme])
# Add colorscheme to chezmoi config data
chezmoi_config_dict["data"]["drapeau"]["colors"] = drapeau_color_scheme_dict
# Write out modified dict to chezmoi config file
with open(chezmoi_config_file, 'w') as f:
toml.dump(chezmoi_config_dict, f)
return "=== SUCCESS ==="
main()

15
tags
View file

@ -8,7 +8,6 @@
!_TAG_FIELD_DESCRIPTION name /tag name/
!_TAG_FIELD_DESCRIPTION pattern /pattern/
!_TAG_FIELD_DESCRIPTION typeref /Type and name of a variable or typedef/
!_TAG_FIELD_DESCRIPTION!Python nameref /the original name for the tag/
!_TAG_FIELD_DESCRIPTION!XML uri /uri associated with name prefix/
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
@ -32,13 +31,6 @@
!_TAG_KIND_DESCRIPTION!Markdown s,section /sections/
!_TAG_KIND_DESCRIPTION!Markdown t,subsubsection /level 3 sections/
!_TAG_KIND_DESCRIPTION!Markdown u,l5subsection /level 5 sections/
!_TAG_KIND_DESCRIPTION!Python I,namespace /name referring a module defined in other file/
!_TAG_KIND_DESCRIPTION!Python Y,unknown /name referring a class\/variable\/function\/module defined in other module/
!_TAG_KIND_DESCRIPTION!Python c,class /classes/
!_TAG_KIND_DESCRIPTION!Python f,function /functions/
!_TAG_KIND_DESCRIPTION!Python i,module /modules/
!_TAG_KIND_DESCRIPTION!Python m,member /class members/
!_TAG_KIND_DESCRIPTION!Python v,variable /variables/
!_TAG_KIND_DESCRIPTION!SVG d,def /ids in defs tags/
!_TAG_KIND_DESCRIPTION!Scheme f,function /functions/
!_TAG_KIND_DESCRIPTION!Scheme s,set /sets/
@ -59,7 +51,6 @@
!_TAG_PARSER_VERSION!JSON 0.0 /current.age/
!_TAG_PARSER_VERSION!Lua 0.0 /current.age/
!_TAG_PARSER_VERSION!Markdown 1.1 /current.age/
!_TAG_PARSER_VERSION!Python 0.0 /current.age/
!_TAG_PARSER_VERSION!SVG 0.0 /current.age/
!_TAG_PARSER_VERSION!Scheme 0.0 /current.age/
!_TAG_PARSER_VERSION!Sh 0.0 /current.age/
@ -71,11 +62,6 @@
!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/
!_TAG_PROGRAM_URL https://ctags.io/ /official site/
!_TAG_PROGRAM_VERSION 6.1.0 /v6.1.0/
!_TAG_ROLE_DESCRIPTION!Python!module imported /imported modules/
!_TAG_ROLE_DESCRIPTION!Python!module indirectlyImported /module imported in alternative name/
!_TAG_ROLE_DESCRIPTION!Python!module namespace /namespace from where classes\/variables\/functions are imported/
!_TAG_ROLE_DESCRIPTION!Python!unknown imported /imported from the other module/
!_TAG_ROLE_DESCRIPTION!Python!unknown indirectlyImported /classes\/variables\/functions\/modules imported in alternative name/
!_TAG_ROLE_DESCRIPTION!Sh!heredoc endmarker /end marker/
!_TAG_ROLE_DESCRIPTION!Sh!script loaded /loaded/
!_TAG_ROLE_DESCRIPTION!Yaml!anchor alias /alias/
@ -462,7 +448,6 @@ logo_wave_dir dot_config/openrazer/persistence.conf /^logo_wave_dir = 1$/;" k se
lpd-enabled dot_config/transmission/settings.json /^ "lpd-enabled": true,$/;" b
lua_ls dot_config/nvim/dot_neoconf.json /^ "lua_ls": {$/;" o object:neoconf.plugins
m3u dot_config/mopidy/mopidy.conf /^[m3u]$/;" s
main run_drapeau.py /^def main():$/;" f
main-window-height dot_config/transmission/settings.json /^ "main-window-height": 465,$/;" n
main-window-is-maximized dot_config/transmission/settings.json /^ "main-window-is-maximized": false,$/;" b
main-window-width dot_config/transmission/settings.json /^ "main-window-width": 808,$/;" n