Commit Graph

1659 Commits

Author SHA1 Message Date
druckdev
36ca182110 zsh:glog: Better handling of small terminals +more
Instead of storing fzf's output and doing something with it (putting
into clipboard/editing buffer/stdout, etc.) there is a new keybinding
that stores the currently selected commit in the clipboard. fzf's output
is not piped or saved anymore since else `less` cannot be executed
inside of fzf. This is necessary for the second new keybinding that
executes the preview command piped into less. This is needed for example
when `glog` is started in a terminal that is too small to display all
information. In that case the peview window is not shown by default
anymore (but can still be toggled).
Since fzf can now only be aborted it always returns 130. Since this is
annoying `glog` returns 0 at the end form now on.

Refactoring:
Make the `commit_hash` regex more robust and by that simultaneously the
`del_ansi` regex obsolete.
Use `$dateshort` in `$date` since it depends from it.
Do not store the color flag in an extra variable. This was done earlier
to keep the lines under 80 characters but is not needed anymore.
2020-10-13 00:45:57 +02:00
druckdev
53622ea223 zsh:autoload:*: Add filetype to vim modeline 2020-10-10 13:27:53 +02:00
druckdev
552b467102 meta:commit-msg-hook: Add more special characters 2020-10-10 13:26:42 +02:00
druckdev
d8f432655e zsh:glog: Push to editor buffer rather clipboard
This removes the dependency of xclip and makes it more usable since when
I need the commit hash it will almost always be in the next command.
2020-10-10 13:12:19 +02:00
druckdev
1a3a062309 zsh:glog: Small fixes
Commit hashes only contain letters from a-f.
Use heredoc for the fzf preview command for better readability.
2020-10-10 13:10:39 +02:00
druckdev
f3938bd38d firefox: Protect against unicode fishing attacks 2020-10-10 01:18:31 +02:00
druckdev
810415ebd1 firefox: Let fullscreen fill window not the screen
The WM should be in charge of that.
2020-10-10 01:18:10 +02:00
druckdev
164af2e500 vim: Automatic formatting 2020-10-10 00:30:09 +02:00
druckdev
5f4a6862ab vim: Add binding to correct with first suggestion 2020-10-10 00:28:37 +02:00
druckdev
d14a84fb9c vim: Turn on showcmd in vim like in neovim 2020-10-10 00:27:46 +02:00
druckdev
4fafd8a99a vim: Improve command-line completion
Turn on wildmenu (Default in neovim).
Let vim first complete the longest common string between matches before
seleting full matches. (Similar to completion done by bash or zsh)
2020-10-10 00:22:24 +02:00
druckdev
646d1bc7c4 vim: Bind Ctrl-Backspace also on command-line 2020-10-10 00:05:22 +02:00
druckdev
c0f7b43dac vim: Load coc.nvim only with vim >= 8.1.1719 2020-10-10 00:03:48 +02:00
druckdev
027204615b vim: Use EN instead of EN_US dict for spell check
I do not care about color/colour etc.
2020-10-10 00:01:19 +02:00
druckdev
72159411b9 zsh: Delete unused parts and bits
Delete:
 - transfer.zsh
 - zsh-async
 - telegram helper functions + completion
 - TERM hack for kitty terminal
2020-10-06 22:22:42 +02:00
druckdev
0424941699 zsh: Rename autoloadable function ls
Rename to avoid confusion and make the config more transparent.
2020-10-06 03:54:01 +02:00
druckdev
ea4f13dc84 ranger: Add config symlink to rc.conf for conf
Since `rc.conf` is not matched by `conf` and it does not really match a
broader pattern that could be added.
2020-10-06 03:27:37 +02:00
druckdev
5b088f8822 scripts: Add toggleDock
Add old script that toggles the dock in GNOME.
2020-10-06 03:26:08 +02:00
druckdev
e339c120c3 zsh:keys: Rework rationalize_dots/_expandDots
Restart from different implementation, since nicoulaj's dotfile repo
seems to be offline and I prefer majutsushi's cleaner version.

Add a slash after the dots since normally I continue on typing the path
and it does not hurt if I don't.
2020-10-06 03:02:55 +02:00
druckdev
5c784dae83 zsh:keys: Refactor and add comment 2020-10-06 02:11:42 +02:00
druckdev
b390d9df5f ranger: Replace filter with fzf-like scout command 2020-10-06 01:22:30 +02:00
druckdev
d5efedf872 raw2preview: Refactor and add functionality
Add support for multiple arguments.
Make the code more modular and extendable for other raw formats by
keeping the differentiation code in the main loop and removing the
hardcoded file extension from extractRAW().
Write some of the EXIF tags that the original raw image had into the JPG
like Orientation and some technical details.
2020-10-06 01:03:31 +02:00
druckdev
9bb96e26e7 git:hook:commit-msg: Allow capitals and numbers
Allow capitals and numbers in the program name specification in the
subject line.
2020-10-06 00:59:13 +02:00
druckdev
69058a86df zathura: Keep colors when recoloring + live-search
Keep colors of images intact when recoloring instead of making them
gray scale.
Jump directly to search matches while typing.
2020-10-06 00:41:36 +02:00
druckdev
5ca84d8ec9 zsh:alias: Quote nested aliases with single quotes
Use single quotes for nested aliases so that the alias is only then
expanded when the command is used. By that we ensure that the order of
the aliases in alias.zsh is irrelevant.
2020-10-05 21:31:52 +02:00
druckdev
ce10c25a59 zsh:keys: Add vim like text object selection
Add vim like text object selection bindings like ci(, ya", etc..
Copied from softmoth/zsh-vim-mode. Since all the other interesting parts
are already covered (for example by p10k) in my config, sourcing the
entire plugin would not make sense.
2020-10-05 14:56:26 +02:00
druckdev
d3d727f9a5 zathura: Update (colors, clipboard, binding)
Add binding for recoloring and change its lightcolor to zathuras
background color.
Use the system clipboard for the selections.
2020-10-04 13:50:59 +02:00
druckdev
0ff935663e polybar:launch: Do not parse xrandr for primary
Instead of getting the primary monitor from xrandr we can use the output
of polybars `--list-monitors` that we get already. This results in a
slight performance boost.
2020-10-03 01:57:48 +02:00
druckdev
d0da230266 git:hook:commit-msg: Allow some special characters
Allow some special character in the program name specification in the
subject line.
2020-10-03 01:30:04 +02:00
druckdev
4cb445c2b5 shell-scripts: Use [[ instead of [ where possible
Replace all occurrences of [ with [[ in bash and zsh scripts and
configs.
Performance wise it makes sense to use the builtin instead of calling an
external command also when from a functionality stand point `test` would
suffice.
2020-10-03 01:29:29 +02:00
druckdev
29d28a25ee polybar: Use st to start nmtui 2020-09-28 18:10:05 +02:00
druckdev
1d3adc30e5 polybar: Make hardcoded paths dependant from XDG
Instead of hardcoding the paths of all the scripts, use env variables
that are set in launch.sh. This way the config also works with
XDG_CONFIG_HOME not set to ~/.config.
Sadly polybar only accepts references that stand on their own.
(So something like ${env:XDG_CONFIG_HOME:~/.config}/polybar/<script>
does not work.) Hence the mess with the associative array and the
variables for every module.
2020-09-28 18:08:03 +02:00
druckdev
abf4ad7333 firefox: Add user.js
Initial commit of user.js from a fresh install with my goto options set
in the GUI.
TODO: comment
2020-09-28 16:18:46 +02:00
druckdev
11819cc359 vim: Add more binds for split view navigation 2020-09-28 04:13:45 +02:00
druckdev
093c3a6f9c git: Highlight current match in pager 2020-09-28 04:12:40 +02:00
druckdev
51797397f6 zsh: Convert all oneline functions into aliases
Convert all functions that are pretty much oneliners and do not contain
any real logic into aliases by using anonymous functions.
I am not too sure if I will keep it this way.
2020-09-28 04:07:56 +02:00
druckdev
2540b917c3 zsh:autoload:ls: Fix behavior when -d is given 2020-09-28 03:23:11 +02:00
druckdev
86ad1a8536 zsh:autoload:ls: Rephrase comment 2020-09-28 03:19:12 +02:00
druckdev
6fbe63be67 zsh:autoload:ls: Set vim filetype 2020-09-28 03:17:20 +02:00
druckdev
0cff51f17d zsh: Add alias for listing zsh options + values 2020-09-28 02:14:22 +02:00
druckdev
285863cb4f zsh:alias: Refactor
Reorder categories.
Remove unused aliases and PATH modification.
Refactor to keep lines under the maximum of 80 columns.
Use brace expansion where an alias has different names.
Simplify method for finding the wise and sose hash.
2020-09-28 02:06:08 +02:00
druckdev
6158900925 zsh: Don't autoload completion and hidden files
Ignore files that are hidden and functions that follow the naming
convention of completion functions.
2020-09-27 18:39:43 +02:00
druckdev
9ae3de7d64 zsh: Add git alias for commiting with last message 2020-09-27 18:36:35 +02:00
druckdev
10c8d7097a meta: Add commit-msg git hook 2020-09-25 02:27:57 +02:00
druckdev
f36c83254b vim: Modify pane switching keybindings
Control hjkl is faster to type, especially when changing more than once.
2020-09-25 02:17:07 +02:00
druckdev
7aed147400 zsh: Do not complete arguments twice for trash
Also cleanup the comments around that section a bit.
2020-09-25 01:36:40 +02:00
druckdev
d7fc680abe zsh: Refactor functions
Combine functions{Pre,Post}.zsh into functions.zsh. There is no reason
or sense in splitting the functions like that and differentiating
between functions that should be loaded before and after sourcing the
aliases.

Rename the functions from funcPre, making their aliases superfluous.
2020-09-25 01:26:17 +02:00
druckdev
11ec8b93fb zsh: Heavy improvements to ls_show_hidden
Autoload the function instead of declaring it directly.
Add functionality for multiple targets. It should now pretty much
perform like `command ls`.
Refactored code to use more zsh extensions like globbing instead of
parsing the output of `ls` making it a lot faster.
2020-09-25 01:09:59 +02:00
druckdev
b301cb5045 vim: Add substitution binding for visual mode too 2020-09-25 00:58:21 +02:00
druckdev
03e31ee636 git: Add renamings of files as jump-point 2020-09-25 00:52:13 +02:00