Commit graph

198 commits

Author SHA1 Message Date
Bruno BELANYI 1f1d3c9545 [ADD][SCRIPTS] i3-get-window-criteria script
This makes it easier to write an i3 filter command, by just executing
the script and clicking on the window you want to filter.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 0e2d7f5d00 [ADD][I3] Make Thunderbird's filter window float 2019-10-19 05:46:29 +02:00
Bruno BELANYI 0473705335 [UPDATE][VIM] Use b:undo_ftplugin
You're supposed to undo the changes that you made to a buffer's
variables when doing filetype-related settings. The variable
'b:undo_ftplugin' contains the commands necessary to revert any changes
that you have made to accomodate this filetype.

I removed the mappings for left and right in a quickfix windows because
I don't use them, and the 'qf' plug-in already maps those (meaning I had
an error when I tried to unmap them after qf already did so).
2019-10-19 05:46:29 +02:00
Bruno BELANYI a0a11c5eb9 [ADD][VIM] Remove numbering in terminal buffers 2019-10-19 05:46:29 +02:00
Bruno BELANYI c9a2b25a2c [UPDATE][VIM] Number toggle without a plug-in
It's really just a few lines of really simple Vimscript.
2019-10-19 05:46:29 +02:00
Bruno BELANYI a7bdded5c6 [ADD][GIT] Alias m4 to vimdiff 4-window view
Sometimes it is useful to also have the base file accessible when
merging branches. This view still has the local file on the left and the
remote branch on the right, with the base in the middle and the result
at the bottom.

The d1o/d2o/d3o take from the local/base/remote for the current file.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 4e6821a0f2 [ADD][GIT] Use vim-fugitive as default mergetool
I really like the way vim-fugitive show a merge conflict by having our
local index on the left (the target), and the remote changes on the
right (what we're trying to merge with our branch). The result is
obviously the file in the middle.

The d2o and d3o mappings take from local/remote for the current chunk.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 6dd31874c8 [UPDATE][VIM] Move filetype files to 'after/' 2019-10-19 05:46:29 +02:00
Bruno BELANYI e46d347c61 [ADD][TRIDACTYL] Hint at item pages on Hacker News 2019-10-19 05:46:29 +02:00
Bruno BELANYI f8112777ad [ADD][VIM] Better vim-unimpaired mappings
I use a french layout keyboard ('AZERTY' layout), which does not have
the greatest access to '[' and ']'.
2019-10-19 05:46:29 +02:00
Bruno BELANYI ca7ae65732 [ADD][VIM] Git-messenger plug-in to read commits 2019-10-19 05:46:29 +02:00
Bruno BELANYI 78d5a77552 [UPDATE][VIM] Remove unused fugitive mappings 2019-10-19 05:46:29 +02:00
Bruno BELANYI c06f7c9faf [UPDATE][SHELL] Remove ureload alias 2019-10-19 05:46:29 +02:00
Bruno BELANYI 90be3d4dba [ADD][VIM] Use flags from compile_command with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI 809a348490 [ADD][VIM] Mappings to navigate quickfix history
It also supports navigating the location list history when inside a
location list.

The autoload plug-in idea was taken from this Vimways article:
<https://vimways.org/2018/colder-quickfix-lists/>
2019-10-19 05:46:29 +02:00
Bruno BELANYI 1a72e67273 [UPDATE][VIM] Move rust plugin to language section 2019-10-19 05:46:29 +02:00
Bruno BELANYI cae382e0b4 [ADD][VIM] FastFold plugin 2019-10-19 05:46:29 +02:00
Bruno BELANYI 30ea1eed72 [ADD][VIM] Enable US English spelling by default 2019-10-19 05:46:29 +02:00
Bruno BELANYI 2e6608668e [ADD][VIM] More fuzzy finder mappings 2019-10-19 05:46:29 +02:00
Bruno BELANYI d4413112e9 [ADD][ZSH] Bind delete key 2019-10-19 05:46:29 +02:00
Bruno BELANYI 9b71074511 [UPDATE][GIT] Re-order configuration file
I want the core and the user settings on top, all but the alias sections
and sections added by plug-ins to be in alphabetical order, then the
aliases, followed by plug-in related settings (such as git-lfs).
2019-10-19 05:46:29 +02:00
Bruno BELANYI 81ee5d3f67 [ADD][GIT] Use patience diff by default
The patience diff usually results in better patches than the default
myers algorithm.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 826db6d2de [ADD][GIT] Better diff colors
I like having some colors for the meta-information shown during
diff operations.

Using the `diff-hightlight` script, you can get character-level
highlights of your diffs (just like GitHub and GitLab).
2019-10-19 05:46:29 +02:00
Bruno BELANYI b02cec8fff [ADD][VIM] Use spell-checking for git commit 2019-10-19 05:46:29 +02:00
Bruno BELANYI 97c4207b38 [UPDATE][SHELL] Make less clear screen on start-up
If you don't have this option, less will just start outputting from
wherever your cursor was (so the line where you were writing your
command), but any movement would make it snap to the top of the
terminal.

This makes it clear the screen before doing its first draw, making the
output systematically start from the top.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 1944ed578d [ADD][VIM] Use pyls in Pipenv with automatically
ALE can detect if the file you're currently editing is inside a Pipenv
environment, and use the pyls inside your environment to have access to
module definitions.

This doesn't launch pyls inside Pipenv when there's no environment
active for your file.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 4753e32c30 [ADD][VIM] Shellcheck options for ALE
I want shellcheck to detect which shell is most appropriate on the `sh`
filetype, but explicitly use the `bash` dialect on `bash` and `zsh`
filetypes.

I also really don't like nullary conditions in shell, so I'll screen for
those too.

I might turn on the 'quote-safe-variables' check too, because I think
quoting variables is a good habit to take.
2019-10-19 05:46:29 +02:00
Bruno BELANYI f747005981 [ADD][VIM] Use shfmt with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI fde97e5b66 [FIX][SHELL] Modify PATH at login only
It's cleaner to only export my modified PATH when I'm logging in,
instead of doing it at each shell launch.

Because Zsh and Bash don't use the same mechanism to let you know you
are in a login session, you gotta check both separately. But that
doesn't matter because lightdm doesn't launch `sh` as a login shell
anyway... So the condition is super messy.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 02ad16c4e8 [ADD][VIM] Pandoc to markdown ALE alias 2019-10-19 05:46:29 +02:00
Bruno BELANYI bdb53424c3 [ADD][VIM] Use dfmt fixer with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI 19f1baddfe [ADD][TRIDACTYL] Search related mappings 2019-10-19 05:46:29 +02:00
Bruno BELANYI 871c6fb299 [ADD][VIM] Use jq fixer with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI c108143526 [UPDATE][VIM] More ALE linters for python
I de-activated the pycodestyle module for pyls because I already use
flake8 to do that job.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 9f397c4c28 [ADD] Python isort configuration 2019-10-19 05:46:29 +02:00
Bruno BELANYI 5a13a35402 [ADD][VIM] Use rustfmt fixer with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI fb646c8b74 [ADD][VIM] Rust options for ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI 00ab079405 [UPDATE][REDSHIFT] Lower night temperature
I got used to having a red screen during the night on my phone, I can
now have a lower temperature on my computer screen without it bothering
me.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 132a035443 [ADD][I3] Make htop floating by default
When launched from a program launcher, the title of an htop terminal is
htop, unlike when it is launched from the command line.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 57a48b3c05 [ADD][VIM] Local leader mapping
I don't use the '!' command to filter text through an external program.
If I need that functionality I use visual mode and a ':!' command.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 5e5b8271c2 [ADD][VIM] Don't list Netrw buffers
I don't want to show a long list of directories in my buffer list,
2019-10-19 05:46:29 +02:00
Bruno BELANYI b7579b0a9b [UPDATE][VIM] Use 88 columns limit on python files 2019-10-19 05:46:29 +02:00
Bruno BELANYI 7b0f8f360a [ADD][GITIGNORE] Ignore non-personal vim files
Now that I'm tracking the '.vim' folder, I need to ignore all the files
that were automatically populated inside it by plug-ins or spelling.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 5184dd5a56 [ADD][VIM] Use black fixer with ALE
This introduces the '.vim' folder to my dot-files repository. I'll have
to think about splitting my '.vimrc' file into multiple files inside the
'.vim' folder.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 0d04061a80 [ADD] Flake8 configuration file
Using 'line-length=80' and flake8-bugbear's B950 warning, I respect
black's formatting of 88 columns max.

The T4 category is related to mypy lints, using the 'flake8-mypy`
plugin.

The max complexity is supposed to make you write shorter functions with
less complexity, using the cyclomatic complexity heuristic.

This file is almost directly taken from black's own flake8
configuration, because I'm using it as a linter and I mostly agreed with
its settings.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 558a138f2e [ADD][VIM] Compile flags for C/C++ in ALE
I usually code in C99 and C++17 because that's EPITA's guidelines.

I'll have to check out the new C11/C18 features (notably threading and
type genericity...) someday.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 4ae3eda5f9 [ADD][VIM] Basic ALE settings 2019-10-19 05:46:29 +02:00
Bruno BELANYI 7940274ad0 [ADD][VIM] ALE and linting lighline integration
I changed the theme of lightline's statusline to wombat because the
errors did not have any color using gruvbox.
2019-10-19 05:46:29 +02:00
Bruno BELANYI a4f1c22e77 [ADD][I3] Start udiskie at launch 2019-10-18 22:17:20 +02:00
Bruno BELANYI da789e2d5d [UPDATE][SHELL] Consistent style in profile
I prefer using the '$(...)' sub-shell notation instead of back-ticks. I
also try to systematically quote my variables if they're not numbers.
2019-10-18 22:17:20 +02:00