1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: friendship ended with todo.txt

This commit is contained in:
2021-04-08 20:00:54 +02:00
parent 71b5a8cb24
commit 4cba5a0b8a
6 changed files with 0 additions and 54 deletions

View File

@@ -244,7 +244,6 @@ in {
./theming.nix
./tmux.nix
./tor.nix
./todo-txt.nix
./traadfri.nix
./unclutter.nix
./version.nix

View File

@@ -11,7 +11,6 @@
vim-colors-paramount = pkgs.callPackage <niveum/packages/vimPlugins/vim-colors-paramount.nix> { };
vim-256noir = pkgs.callPackage <niveum/packages/vimPlugins/vim-256noir.nix> { };
icalendar-vim = pkgs.callPackage <niveum/packages/vimPlugins/icalendar-vim.nix> { };
todo-txt-vim = pkgs.callPackage <niveum/packages/vimPlugins/todo-txt-vim.nix> { };
jq-vim = pkgs.callPackage <niveum/packages/vimPlugins/jq-vim.nix> { };
vim-fsharp = pkgs.callPackage <niveum/packages/vimPlugins/vim-fsharp.nix> { };
vim-reason-plus = pkgs.callPackage <niveum/packages/vimPlugins/vim-reason-plus.nix> { };
@@ -65,7 +64,6 @@
jq-vim
purescript-vim
rust-vim
todo-txt-vim
typescript-vim
vim-fsharp
vim-javascript

View File

@@ -1,25 +0,0 @@
{ pkgs, ... }:
let
get-todo-dir = pkgs.writers.writeDash "git-toplevel-todo" ''
if GIT_TOPLEVEL=$(${pkgs.git}/bin/git rev-parse --show-toplevel 2>/dev/null); then
echo "$GIT_TOPLEVEL/.todo"
else
echo "$HOME/cloud/Dropbox/todo"
fi
'';
in {
home-manager.users.me.home.file.".todo/config".text = ''
# export TODO_DIR="$(${get-todo-dir})"
export TODO_DIR="$HOME/cloud/Dropbox/todo"
export TODO_FILE="$TODO_DIR/todo.txt"
export DONE_FILE="$TODO_DIR/done.txt"
export REPORT_FILE="$TODO_DIR/report.txt"
'';
environment = {
systemPackages = [ pkgs.todo-txt-cli ];
shellAliases.t = "todo.sh";
variables.TODOTXT_DEFAULT_ACTION = "ls";
};
}

View File

@@ -91,21 +91,6 @@ in {
units = "metric";
};
}
{
block = "custom";
interval = 20;
command = pkgs.writers.writeDash "tasks" ''
${pkgs.todo-txt-cli}/bin/todo.sh list '(.)' \
| tail -n 1 \
| ${pkgs.gawk}/bin/awk '{ print " " $2 "/" $4 }'
'';
on_click = let sleepSeconds = 2.5;
in pkgs.writers.writeDash "show-tasks" ''
${pkgs.st}/bin/st -c floating -e ${pkgs.dash}/bin/dash -c "${pkgs.todo-txt-cli}/bin/todo.sh list && sleep ${
toString sleepSeconds
}"
'';
}
{
block = "custom";
interval = 30;

View File

@@ -135,7 +135,6 @@ if has("autocmd")
autocmd bufnewfile,bufread urls,config set filetype=conf
autocmd bufnewfile,bufread *.elm packadd elm-vim | set filetype=elm shiftwidth=4
autocmd bufnewfile,bufread *.dhall packadd dhall-vim | set filetype=dhall
autocmd bufnewfile,bufread *todo.txt packadd todo.txt-vim | set filetype=todo.txt
autocmd filetype haskell packadd haskell-vim | set keywordprg=hoogle\ -i
autocmd filetype javascript packadd vim-javascript
autocmd filetype make setlocal noexpandtab

View File

@@ -1,10 +0,0 @@
{ vimUtils, fetchFromGitHub }:
vimUtils.buildVimPluginFrom2Nix {
name = "todo.txt-vim";
src = fetchFromGitHub {
owner = "freitass";
repo = "todo.txt-vim";
rev = "6845221d45bd62e604c2024bc511a56e79d1118b";
sha256 = "08m9q5f2pz6gjp0vkmm7glfsrbnldxi1j59dm5d7any6y96xxd6v";
};
}