summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/env2
-rw-r--r--.config/nvim/plug-config/startify.vim2
-rw-r--r--.config/nvim/plug.vim5
-rw-r--r--.config/zathura/zathurarc4
-rwxr-xr-x.local/bin/unixize34
5 files changed, 36 insertions, 11 deletions
diff --git a/.config/env b/.config/env
index 7811660..8883d71 100644
--- a/.config/env
+++ b/.config/env
@@ -1,5 +1,5 @@
# PATH
-export PATH="$HOME"/.local/bin:"$PATH"
+export PATH="$HOME"/.local/bin:"$PATH":/usr/local/llvm11/bin
# Apps
export EDITOR='nvim'
diff --git a/.config/nvim/plug-config/startify.vim b/.config/nvim/plug-config/startify.vim
index a7c5d50..f06e515 100644
--- a/.config/nvim/plug-config/startify.vim
+++ b/.config/nvim/plug-config/startify.vim
@@ -23,7 +23,7 @@ let g:startify_lists = [
\ ]
let g:startify_bookmarks = [
\ { 'b': '~/.config/bspwm/bspwmrc' },
- \ { 'e': '~/.config/env' },
+ \ { 'env': '~/.config/env' },
\ { 'fa': '~/.config/fish/alias.fish' },
\ { 'fc': '~/.config/fish/config.fish' },
\ { 'v': '~/.config/nvim/init.vim' },
diff --git a/.config/nvim/plug.vim b/.config/nvim/plug.vim
index 694fa48..027cae5 100644
--- a/.config/nvim/plug.vim
+++ b/.config/nvim/plug.vim
@@ -14,20 +14,21 @@ Plug 'mhinz/vim-signify'
Plug 'mhinz/vim-startify'
Plug 'morhetz/gruvbox'
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
+Plug 'paretje/nvim-man'
Plug 'preservim/tagbar'
Plug 'preservim/nerdcommenter'
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'
Plug 'sainnhe/gruvbox-material'
+Plug 'tpope/vim-dispatch'
Plug 'tpope/vim-fugitive'
-Plug 'tpope/vim-surround'
Plug 'tpope/vim-speeddating'
+Plug 'tpope/vim-surround'
Plug 'unblevable/quick-scope'
Plug 'vifm/vifm.vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'vim-scripts/grep.vim'
-Plug 'vim-utils/vim-man'
Plug 'voldikss/fzf-floaterm'
Plug 'voldikss/vim-floaterm'
call plug#end()
diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc
index 82ab580..6614ec2 100644
--- a/.config/zathura/zathurarc
+++ b/.config/zathura/zathurarc
@@ -3,6 +3,10 @@ set statusbar-h-padding 0
set statusbar-v-padding 0
set page-padding 1
set selection-clipboard clipboard
+set default-bg "#1d2021"
+set default-fg "#ebdbb2"
+set statusbar-bg "#1d2021"
+set statusbar-fg "#ebdbb2"
map u scroll half-up
map d scroll half-down
map D toggle_page_mode
diff --git a/.local/bin/unixize b/.local/bin/unixize
index 27c1a8b..4f03c14 100755
--- a/.local/bin/unixize
+++ b/.local/bin/unixize
@@ -17,17 +17,37 @@ sub get_og_files
return @og_files;
}
-sub get_new_files
+sub unixize_file_names
{
my @og_files = @_;
my @new_files;
foreach (@og_files) {
- $_ =~ s/\ -\ /-_/g;
- $_ =~ s/\_-\_/-_/g;
- $_ =~ s/['"]+/_/g;
- $_ =~ s/\ /_/g;
- $_ =~ s/[\$#@~!&*%()\[\];,:?^`\\\/<>|]+/-/g;
+ if ($_ =~ /^[0-9]+\./) {
+ $_ =~ s/\.//;
+ }
+ $_ =~ s/ - /_/g;
+ $_ =~ s/ /_/g;
+ $_ =~ s/c\+\+/cxx/g;
+ $_ =~ s/C\+\+/CXX/g;
+ $_ =~ s/[áàåâä]/a/g;
+ $_ =~ s/[ÁÀÅÂÄ]/A/g;
+ $_ =~ s/æ/ae/g;
+ $_ =~ s/Æ/AE/g;
+ $_ =~ s/ç/c/g;
+ $_ =~ s/Ç/C/g;
+ $_ =~ s/[éèêë]/e/g;
+ $_ =~ s/[ÉÈÊË]/E/g;
+ $_ =~ s/ô/o/g;
+ $_ =~ s/Ô/O/g;
+ $_ =~ s/ö/o/g;
+ $_ =~ s/Ö/O/g;
+ $_ =~ s/ü/u/g;
+ $_ =~ s/Ü/U/g;
+ $_ =~ s/[^A-Za-z0-9\._]+//g;
$_ = lc($_);
push @new_files, $_;
}
@@ -41,7 +61,7 @@ sub main
my @files;
@og_files = get_og_files();
- @new_files = get_new_files(@og_files);
+ @new_files = unixize_file_names(@og_files);
while (@og_files || @new_files) {
$files[0] = shift @og_files;
$files[1] = shift @new_files;