Compare commits

...

5 Commits

Author SHA1 Message Date
5c27f13ef1
tmux: rebind stuff under prefix
try not to conflict with vim bindings
2023-06-17 10:53:50 -04:00
dfb2b56827
calcpy: updated to latest commit
properly fixes issues with vim-mode
2023-06-17 10:45:11 -04:00
1f2c0ab1cc
aliases.fish: disable history on units 2023-06-17 10:43:49 -04:00
f201868727
calcpy: improvements
- escape actually works in vi-mode
- added dg() alias for degrees()
2023-06-15 11:29:02 -04:00
129ab023f3
calcpy: added
also see: https://github.com/idanpa/calcpy/issues/2
2023-06-15 10:21:34 -04:00
8 changed files with 37 additions and 2 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "src/.local/bin/calcpy"]
path = src/.local/bin/calcpy
url = https://github.com/idanpa/calcpy

View File

@ -56,6 +56,9 @@ python-lsp-server
python-lsp-black python-lsp-black
typescript typescript
typescript-language-server typescript-language-server
# .local/bin/calcpy/ script
ipython
python-sympy
# #
# for new systems # for new systems

View File

@ -33,6 +33,12 @@ function bk; $EDITOR ~/dox/not/bk.txt; end
function rem; $EDITOR ~/dox/not/rem; end function rem; $EDITOR ~/dox/not/rem; end
function ldg; $EDITOR ~/dox/not/journal.ldg; end function ldg; $EDITOR ~/dox/not/journal.ldg; end
# pocket calculator
function calcpy; python3 ~/.local/bin/calcpy/calcpy_cli.py; end
# disable history on units
alias units='units -H ""'
# music recognition # music recognition
function musrec function musrec
# if file exists # if file exists

View File

@ -0,0 +1,5 @@
c = get_config()
c.TerminalInteractiveShell.editing_mode = "vi"
c.TerminalInteractiveShell.show_rewritten_input = False
c.TerminalInteractiveShell.emacs_bindings_in_vi_insert_mode = False

View File

@ -0,0 +1,11 @@
This is the IPython startup directory
.py and .ipy files in this directory will be run *prior* to any code or files specified
via the exec_lines or exec_files configurables whenever you load this profile.
Files will be run in lexicographical order, so you can control the execution order of files
with a prefix, e.g.::
00-first.py
50-middle.py
99-last.ipy

View File

@ -0,0 +1,6 @@
# vim: ft=python
from math import degrees as dg
# don't need parentheses on some function calls
%autocall 2

View File

@ -47,8 +47,8 @@ set-hook -g pane-exited 'run-shell "dwm.tmux layouttile"'
bind e newpane bind e newpane
bind w newpanecurdir bind w newpanecurdir
bind c killpane bind c killpane
bind -n C-n nextpane bind j nextpane
bind -n C-o prevpane bind k prevpane
bind -n C-b zoom bind -n C-b zoom
bind h decmfact bind h decmfact
bind l incmfact bind l incmfact

1
src/.local/bin/calcpy Submodule

@ -0,0 +1 @@
Subproject commit 5ba26197b7410f16581aa8966498553d7ca83b89