Commit graph

47 commits

Author SHA1 Message Date
Marty Oehme a2605c4254 Fix test cases 2019-12-28 11:23:09 +01:00
Marty Oehme bc4b416f53 Fix WIKIROOT env var tests
Fixed tests using new file structure for personal environment variables.
Added test cases for library environment variable and bibtex (default)
reference file variable.
2019-12-28 11:16:14 +01:00
Marty Oehme bd96394d67 Fix pdf compilation targets and Library envvar
Pdfs will be compiled, replacing special characters with underscores;
this fix also looks for underscored files when trying to open the
compiled version of a file.

The Library environment variable (for my default bibtex library
directory) overwrote yay's library directory; it has been renamed to
LIBRARYROOT to both mirror WIKIROOT as my note directory and keep the
LIBRARY variable empty so yay will continue working.
2019-12-28 10:07:05 +01:00
Marty Oehme d7f51e66cd Fix WikiRoot test 2019-12-04 17:01:15 +01:00
Marty Oehme 920af8e9ba Add default apps, folders environment variables 2019-12-03 23:13:43 +01:00
Marty Oehme 381031749e Fix alias overlap of fasd, pywal
sd was both set by fasd and pywal. Fixed fasd to not alias anything to
sd, so my personal alias takes precedence.
2019-11-29 22:05:15 +01:00
Marty Oehme 5c433ca99e Add binds for quick access to pywal themes
Binds mirror qutebrowser theming: sd/sD/sl/sL

sdD changes to dark variants,
slL to light variants. Uses gruvbox for small letters, themes mimicking
pencil/one for large letters.
2019-11-29 21:07:18 +01:00
Marty Oehme 2f18a9d5ff Remove unnecessary aliases from fasd
I never use half the aliases that fasd provides by default. To make room
for personal quick bindings, simply disable them. They are commented
should I want to make use of them in the future.
2019-11-29 21:03:58 +01:00
Marty Oehme 47b4774505 Add fuzzy package installation/removal
Use fzay to install packages by fuzzy finding them. Use uzay to
uninstall with fzf.
2019-11-24 16:18:10 +01:00
Marty Oehme 131e8e212a Remove warning when skim is not installed
Switched to fzf a while back, skim is not needed on installations
anymore.
2019-11-21 12:13:31 +01:00
Marty Oehme a1c8b56003 Exchange supercrabtree/k for exa
exa is more versatile and way faster than k. I rarely used the git
integration of k (which is, admittedly, better), as well as the colored
variables. So exa should work well enough for my purposes, especially
since I make more use of vifm when cd-ing through a lot of directories.
2019-11-18 17:26:24 +01:00
Marty Oehme 7e45d94997 Add fuzzy tools to vim and shell
In vim:
Use <leader>c to insert a bibtex reference in your text. By default it
is a pandoc reference (@bibref), but it can be changed to latex style
(\cite(bibref)). <leader>CM inserts a pretty-printed reference to the
selected work, using markdown styling. If you want to insert a citation
while writing, use @@ from insertmode to insert the bibref instead.

The settings add two commands: :CiteRef and :CitePretty which call the
respective functions. You can pass any amount of .bibtex libraries to
the commands and they will be available to fuzzy search through.

:CiteEdit also added to fuzzy find a source and open it in vim for editing.
The function is not working yet, I have to find a way to go from the
fuzzy finder to papis, select the correct file and edit it in vim.

In Shell:
Can cd directories (d, D), open files (f, F), open most recently used
(ru), and edit bibtex references (ref). lowercase is a weighted view
over previously used directories/files, Uppercase is a search of the
whole file structure.

Still outstanding:
Needs the same comfort function additions as vim search, especially
reference search. (i.e., open corresponding document, yank path, open
editor,...)
2019-09-04 17:32:11 +00:00
Marty Oehme 39e2035571 Add qutebrowser as default BROWSER env var 2019-08-29 16:45:16 +02:00
Marty Oehme b11343b73a Add bats unit testing to repository
Will recursively look for `*.bats` files and run them with bats-core test suite. Simple sample unit tests for existing scripts are included in `.config/shell/rc.d/test`.
2019-07-27 11:42:54 +00:00
Marty Oehme beb5f1c323 Rename alias & env setting shell scripts 2019-07-27 11:29:31 +02:00
Marty Oehme d7e8831423 Fix static analysis and lint errors 2019-07-24 11:32:04 +02:00
Marty Oehme bedf7e18a9 Fix static analysis errors 2019-07-24 10:54:06 +02:00
Marty Oehme 05c189cfa4 Fix merge errors 2019-07-24 10:42:12 +02:00
Marty Oehme ef73a11e51 Naive fixing of linter errors 2019-07-24 07:33:28 +02:00
Marty Oehme 95c3305cbb Allow entering vifm in pwd with vmm alias
vifm enters last open dirs by default. vmm alias opens vifm with the pwd
as the opened dir instead. Passing along arbitrary paths to vm also
opens vifm there.
2019-07-08 22:04:52 +02:00
Marty Oehme ef7c6ba8c8 Enable vifm image previews 2019-07-04 10:30:24 +02:00
Marty Oehme f932aa4b97 Merge branch '37-replace-ranger-with-vifm' into 'master'
Resolve "Replace ranger with vifm"

Closes #37

See merge request marty-oehme/dotfiles!11
2019-07-03 20:29:35 +00:00
Marty Oehme 9df014fa62 Replace rifle with xdg-open for fuzzy file opening
rifle is going away soon with ranger being replaced by vifm in these
dotfiles. To be prepared, and make them more universal, the fuzzy file
finder uses xdg-open to open any files.
2019-07-03 22:27:57 +02:00
Marty Oehme 0187636e22 Change gopath to default to the new project folder
Moved from Code folder which is deprecated.
2019-07-03 11:48:27 +02:00
Marty Oehme de582afa1d Reword instructions for fuzzy finding programs
Uses the full name of fuzzy finders instead of just their abbreviations
when warning about any of them missing, to make it clearer which
programs the warning is talking about.
2019-06-26 21:21:52 +02:00
Marty Oehme b1cb9ceef9 Remove unused fuzzy finding function 2019-06-26 21:20:40 +02:00
Marty Oehme a442de0292 Begin adding custom sk command 2019-06-17 23:13:55 +02:00
Marty Oehme 215f93d65a Fix fuzzy directory search
Fixed search to be passed along to cd, not the rifle command.
2019-06-17 22:33:13 +02:00
Marty Oehme 900b949a7a Move fuzzy history search, Add missing fuzzy warns
Moved zhfind command to fuzzy finding since it relies on sk to be
present. Added some preliminary warnings if sk is not on the system.
2019-06-17 18:30:19 +02:00
Marty Oehme 359de7e1bd Rename fuzzy finding shell script
In preparation for extending the scripting, renamed the script from just
being a re-aliasing of fzf. Now, all fuzzy finding logic can reside in
this file.
2019-06-17 18:01:23 +02:00
Marty Oehme 348621d824 Add automatic choice of greplikes/fzflikes 2019-06-17 09:18:50 +02:00
Marty Oehme 949e071b97 Fix .. command to go up to parent directory
Fixed the quick-style .. to go up a directory. Use `cd ..` to enable the
fzf enabled selection if you quickly need to go up multiple directories
instead.
2019-06-17 09:17:17 +02:00
Marty Oehme 6298daeca2 Add configurable wiki root directory
Can be set through environment variable WIKIROOT. By default points to
~/Nextcloud/Notes/ but is kept configurable for each computer. Will be
picked up by vim wiki plugin to enable wiki functionality for the
respective directory.
2019-06-12 14:18:46 +02:00
Marty Oehme 34f7cd7da9 Add zhfind command
Can be used to fuzzy search through shell history.
2019-06-07 11:39:38 +02:00
Marty Oehme 510443abdf Add fzy alias to be called as fzf 2019-06-07 10:57:06 +02:00
Marty Oehme ffee75f514 Merge branch 'master' of gitlab.com:marty-oehme/dotfiles 2019-06-07 10:30:02 +02:00
Marty Oehme 6b7705409c Add fasd shell hook 2019-06-05 16:44:15 +02:00
Marty Oehme 729bcf9660 Automatically start X when on display 1
Should start x after all the XDG folders have been set so that aliases
etc should still work. If binds/aliases do not work (things like tm, tl,
cl and so on) then this is presumably caused by a race condition and x
should only be started *after* all directories have benn set.
2019-06-04 11:30:45 +02:00
Marty Oehme df45a08c6c Move scripts to .local/bin
Moved all personal scripts to ~/.local/bin to be systemd file hierarchy
compliant, as well as XDG compliant. Since they are not configuration
options they don't have anything to do in .config directories.
Also, it's just easier to find than the previous .config/scripts/bin.
2019-05-23 11:20:11 +02:00
Marty Oehme 5d146684a9 Merge branch 'master' of gitlab.com:marty-oehme/dotfiles 2019-05-15 10:33:31 +02:00
Marty Oehme 8504d8f769 add check for autojump plugin before loading into shell 2019-05-15 10:27:03 +02:00
Marty Oehme fb5affc593 change shell exit alias to :q to mirror vim 2019-04-23 14:48:42 +02:00
Marty Oehme 34303758e6 specify home directory structure 2019-03-22 11:49:12 +01:00
Marty Oehme ae8ac10b0b add q and wq alias for shell 2019-03-17 22:31:24 +01:00
Marty Oehme f3ad7e4f9e fix k script order 2019-03-15 14:56:18 +01:00
Marty Oehme afd94a8592 organize zsh scripts 2019-03-15 14:54:09 +01:00
Marty Oehme a446cd7a7a organize all shell scripts into logical dirs 2019-03-15 14:40:03 +01:00