Commit graph

378 commits

Author SHA1 Message Date
Ade Attwood
a064375c2b feat(shell): add comby shell aliases
The main reason for this is to automatically exclude common directories form the
search and replace to speed things up a bit.
2021-11-21 11:01:40 +00:00
Ade Attwood
0aad3a6601 chore(emacs): finally move over the php html snippets 2021-11-21 10:56:43 +00:00
Ade Attwood
404df4b3db feat(git): move to delta diff for diff in the terminal
Now when using git diff it will use delta for a much nicer diff format. This is
set for the show and log commands too.

See: https://github.com/dandavison/delta
2021-11-21 10:52:35 +00:00
Ade Attwood
ebd73bcc38 feat(emacs): add file operation functions
This adds file operation command to emacs so you can quickly rename and copy
files.

The problem with the normal copy file if that it misses removing the old buffer
if its a rename and dose not move to the new buffer. This leads to (more than I
like to admit) editing the new file thinking its the old file.

By updating the buffers and automatically switching this prevents this.
2021-11-21 10:38:43 +00:00
Ade Attwood
956a8e1986 fix(pp): update oh-my-zsh to use vcsrepo
oh-my-zsh will now use vcsrepo to install the package. This will now keep it up
to date with the master branch. I don't think this package has been updated in
quite some time.
2021-07-18 13:57:04 +01:00
Ade Attwood
034ae2d143 feat(shell): override "gc" alias to open up the ".git/COMMIT_EDITMSG"
When using tools like commitlint to lint your commits there is always that time
you write an invalid commit. In this situation you are dumped back into the
terminal with an error message and your invalid commit.

This function will now load the invalid commit message back in to the editor so
you can fix the errors and commit successfully.
2021-07-14 14:24:17 +01:00
Ade Attwood
a4d9fb370f fix(shell): ensure to use emacs in the terminal when using git commands 2021-07-14 14:23:20 +01:00
Ade Attwood
385829ea8b fix(shell): re alias gs to gss
Now the `gs` command has be aliased to a git status alias. The original `gs`
would open up ghost script and I would open it everyday trying to run git
status.
2021-07-10 21:21:24 +01:00
Ade Attwood
e5655ed216 refactor(shell): refactor ggpushmr git alias
ggpushmr has now been renamed to ggpushpr. The only place it is called a "Merge
Request" is in Gitlab. All the community has now decided to go with Github's
"Pull Request".

This also makes the branch param optional. If you don't pass a branch name it
will make the pull request against the repositories default branch.
2021-07-10 21:12:13 +01:00
Ade Attwood
208b1e542d refactor(shell): go back full terminal
After a long while in emacs gui trying the terminal inside emacs and using the
external terminal with tmux. I have now decided to back full terminal using
emacs in the terminal in a tmux pain, sort of the same way I was using vim
before I switched to emacs.
2021-07-10 20:57:09 +01:00
Ade Attwood
1270157bdf feat(emacs): completely refactor company and lsp mode
Update the lsp to improve the performance and editing experience. The completion
has been disabled so we can configure it manually to include snippets and file
paths into the company code completion.

Company has been configured to override the tab behaviour to always expand
snippets whenever there is a available snippet. The default behaviour is to
cycle through the completion.
2021-07-10 20:42:41 +01:00
Ade Attwood
ea87574031 chore(emacs): set column width to 80 chars 2021-07-10 20:36:32 +01:00
Ade Attwood
bb66289983 feat(shell): integrate the emacs better into the terminal
There a quite a few fixes and feature here to make the terminal experience of
emacs better. Most of this is only enabled when running in the terminal.

1) Better tmux integration with navigating between splits and also highlighting
the active window between emacs and tmux so you can better see the active window
you are working in.

2) Mouse and clipboard support through the x window manager so "yank" copies
text into the system clipboard

3) Changing the cursor style between insert and normal mode inside the terminal
this is not the case in default evil mode.
2021-07-08 09:03:27 +01:00
Ade Attwood
a5c86ed6f2 fix(emacs): disable web-mode-enable-auto-quoting
This was really annoying when using JSX. When adding a `=` it would always add
in the quotes to make `=""`, this is not good when writing JSX when a lot of the
time you want `={}`. Now that this is disabled I can make the decision of what I
want to add
2021-06-26 21:06:02 +01:00
Ade Attwood
471fb9168d feat(emacs): binding to CTRL-; to add semi colon at the end of the line
Now in insert mode when editing you can add a semi colon at the end of the
current line my pressing CTRL-;. This will then put the cursor after that ready
to continue the line or press enter to start a new line. This is inspired by
some old vim key bindings I had and a vscode plugin called coloniser.
2021-06-26 21:00:10 +01:00
Ade Attwood
8df6f7e798 fix(emacs): js import snippet had a syntax error in it 2021-06-26 20:58:56 +01:00
Ade Attwood
6540bdf68d refactor(emacs): load in c-sharp config
This was missed in a previous commit.
2021-06-26 20:55:22 +01:00
Ade Attwood
67630dcbbf feat(shell): add dkip alias to the ip address of a container
This alias will inspect a container and pull out the ip address so you can get
to it on the network without having to bind ports.
2021-06-26 20:47:25 +01:00
Ade Attwood
6976cfe1fa feat(emacs): add c-sharp support
This is only initial support. Most of the features are built-in to lsp-mode. I
have added some snippets to make my life a bit easier.

There a more tweaks coming but they are general in improving the editing
experience not just targeted at c-sharp.
2021-06-26 20:34:21 +01:00
Ade Attwood
bfe7d7af2a feat(bin): add merge-patch script 2021-06-25 05:55:03 +01:00
a3b0be161d feat(emacs): improve vterm config
This forces vterm buffers to be in the evil emacs state to basically
disable evil-mode to make vterm function more like a native terminal
emulator. I have also bound `C-o` to move to the previous buffer to
simulate the jump backward functionality of evil-mode. This seams to
be working better at the moment due to this always exiting the
buffer. Sometimes jump back can move in the same buffer and this is
not want we want when we are in a vterm buffer.
2021-05-16 20:13:11 +01:00
4b71e6bc0e fix(emacs): change window delete keybinding wd
The current keybinding was set to kill the buffer that was causing an
issue when there was a spit of the same buffers and you wanted to
close one. If your were in this situation them the buffer would be
deleted and both of the windows would close. This is not what I want
from the "delete window" command, the expected behaviour is to close
the one window and leave the other window. This is what
`evil-window-delete` dose. This prevents the buffer from getting
deleted and if it is the last buffer emacs would then close.
2021-05-16 20:00:59 +01:00
fbd607ce5d feat(emacs): add git snippet for the security footer 2021-05-01 14:34:36 +01:00
e48e616c6e fix(emacs): create typescript-tsx-mode
When editing typescript jsx files I was previously using rjsx-mode to
get the jsx highlighting and emmet `className` support. This now
splits out the tsx to ts like other packages like spacemacs and doom
do. This gives me better jsx support with typescript and not impacting
the ts mode that dose not play nicely with jsx.

This seems to be working better with the snippets I created for
spacemacs that works with rjsx-mode and override any functions that
need it for typescript-tsx-mode
2021-05-01 14:26:21 +01:00
3c2b34e98f feat(zsh): add "git add -p" alias
Alias "gap" to "git add -p" for patch adding of files
2021-04-30 20:51:09 +01:00
c704328466 fix(zsh): set the BAT_THEME variable to theme bat cli tool
Setting the bat theme so the cli tool will now integrate better with
the shell theme
2021-04-30 20:46:58 +01:00
d8cf58e529 feat(pp): update to bolt v3 2021-04-30 20:45:06 +01:00
2562204827 fix(emacs): move custom-set-variables out of the init.el
This is to stop the generated code from cluttering the init.el and it
can now be ignored by git
2021-04-16 20:49:53 +01:00
60509de1bf feat(fzf): add command for git check out 2021-04-16 20:49:01 +01:00
7c34a6baf2 fix(git): force git to open commits in terminal editor
When committing and using emacs as the editor it would always open a
new emacs window. This was taking focus away from the terminal and
losing flow when context switching out of the terminal and into a new
window.
2021-04-16 19:59:30 +01:00
4296160d7d feat(emacs) add org reveal package 2021-04-16 19:58:03 +01:00
7cab7c158d feat(zsh): override command not found to add command not found link
When you run a shell command that is not found this will print out a
link to https://command-not-found.com to give more info on the
command and good docs on how to install the package that the command
came from. This can be built on to do other things like git suggestions
on common commands that are incorrect
2021-04-16 19:53:25 +01:00
0ced8a28b1 refactor(core): update code structure
This is the big re structure to all of the projects. I have decided to
go with the `GOPATH` format so all of the code is in one place and
organised inherently by code host / group / project
2021-03-16 20:22:26 +00:00
1e4968e1e1 feat(git): update merge-to to rebase onto target branch
Now when merging to it will rebase onto the target branch to make
merge-to work more. I was finding that it will fail and I was doing
the merge step all the time so now its built in.
2021-03-16 20:18:15 +00:00
7cf8c3fa53 feat(emacs): add code files to move away from spacemacs
This is the start to move away from spacemacs and to a custom emacs
config
2021-03-16 20:12:46 +00:00
d182275eb0 refactor(emacs): disable lsp breadcrumbs
This was after a recent update to lsp-mode / spacemacs when this feature was
enabled by default

See: c4ad14a73a/layers/+tools/lsp/README.org (breadcrumb-on-headerline)
2020-12-29 09:15:31 +00:00
72431d9b18 refactor(emacs): start playing with Hasklig font 2020-12-29 07:58:41 +00:00
755f41bcf8 feat(zsh): add fzf scripts 2020-12-28 21:12:43 +00:00
b7a3aabf49 feat(zsh): add dynamic path support 2020-12-28 21:11:58 +00:00
c80eec632c fix(core): fix bat install
When installing bat from the Ubuntu repo the executable name is `catbat`. After
updating to 20.04 the executable `bat` is not there. This links catbat -> bat so
bat works as expected
2020-12-28 20:51:00 +00:00
6c43582e35 feat(emacs): move to doom modeline 2020-12-28 19:46:12 +00:00
4ccb9323a1 fix(zsh): export go path to execute programmes installed with go get 2020-12-28 09:28:02 +00:00
b751a5f34b fix(zsh): disable base16 shell when in ssh session
When connecting to a workstation with this zshrc base16 will get in causing
issues in the theme on the client workstation
2020-12-28 09:22:43 +00:00
578d0b5f8b pref(zsh): improve start up time of zsh
Remove unused plugins and override composer plugin there was only one bit that
was really slow when evaluating the bin directory
2020-12-28 09:19:32 +00:00
766e50106e refactor(emacs): remove fringe color from theme
This gives the themes a move minimal and clean look.
2020-11-22 21:12:34 +00:00
4019c0a4eb improvement(code): remove line numbers and add defaultFormatter 2020-11-22 21:09:34 +00:00
160220cf5e improvement: add checksums to downloads
This now verifies that the download I am downloading is the one I want. All
checksums are sha256
2020-11-22 21:07:44 +00:00
d3a2f6dbe3 fix(emacs): update spacemacs to the develop branch via puppet
Before puppet was only checking to see if the repo was present. Now it is
checking to see if the branch is updated with the develop branch and getting
auto update when the puppet manifests are applied
2020-11-22 21:03:09 +00:00
340ed4036b fix(git): format .gitconfig and move to Emacs for the editor
For some reason the .gitconfig was indented with tabs this has now been
correctly formatted. Also move over to the Emacs client for the git editor. This
has been working well for now. My in the future look at forcing the editor to
open in the terminal as sometimes the focusing in X is a bit off
2020-11-22 20:57:40 +00:00
430871e37a feat: add mkcert install and config
See: https://github.com/FiloSottile/mkcert
2020-11-22 20:53:53 +00:00