diff --git a/global/.config/doom/config.el b/global/.config/doom/config.el index f1750cb..e725d25 100644 --- a/global/.config/doom/config.el +++ b/global/.config/doom/config.el @@ -160,7 +160,7 @@ (setq org-capture-templates '( - ("p" "Private" + ("g" "Private" entry (file+headline "~/org/private.org.gpg" "Private") "* %?" :empty-lines 0) @@ -171,6 +171,12 @@ "* [%<%Y-%m-%d>] %?\n:PROPERTIES:\n:ID: %(org-id-new)\n:END:\n" :empty-lines 0) + ("p" "Project" + entry + (file+headline "~/org/life.org" "Projects") + "* %?\n:PROPERTIES:\n:ID: %(org-id-new)\n:CREATED: %t\n:END:\n\n** Tasks:\n** Notes:\n** Links:\n" + :empty-lines 0) + ("n" "Note" entry (file+headline "~/org/notes.org" "2025") @@ -182,7 +188,7 @@ "* Event: %?\n\n %i\n\n From: %a" :empty-lines 1) - ("g" "Todo" + ("t" "Todo" entry (file+headline "~/org/inbox.org" "Todo") "* TODO [#C] %?\n:PROPERTIES:\n:Created: %T\n:END:\n " :empty-lines 0) diff --git a/global/.config/mutt/accounts/account.com.foozzione_gmail b/global/.config/mutt/accounts/account.com.foozzione_gmail index cfe0e3f..c685c04 100644 --- a/global/.config/mutt/accounts/account.com.foozzione_gmail +++ b/global/.config/mutt/accounts/account.com.foozzione_gmail @@ -4,8 +4,8 @@ set realname = "Tkachenko Ihor" set mbox_type = Maildir set folder = "$HOME/.local/share/email/foozzione_gmail" set spoolfile = "+INBOX" -set postponed = "+[Gmail].Черновики" -set record = "+[Gmail].Отправленные" -set trash = "+[Gmail].Корзина" +set postponed = "+[Gmail].Drafts" +set record = "+[Gmail].Sent Mail" +set trash = "+[Gmail].Trash" -mailboxes =INBOX ='[Gmail].Вся почта' =[Gmail].Помеченные =[Gmail].Отправленные =[Gmail].Черновики =[Gmail].Корзина =[Gmail].Спам +mailboxes =INBOX ='[Gmail].All Mail' =[Gmail].Important =[Gmail].Sent\ Mail =[Gmail].Drafts =[Gmail].Trash =[Gmail].Spam diff --git a/global/.config/nvim/lua/plugins/telescope.lua b/global/.config/nvim/lua/plugins/telescope.lua index e60e3e5..2f1ed14 100644 --- a/global/.config/nvim/lua/plugins/telescope.lua +++ b/global/.config/nvim/lua/plugins/telescope.lua @@ -2,18 +2,14 @@ local mapvimkey = require("utils.keymapper").mapvimkey local config = function() local telescope = require("telescope") - local copy_filename_to_clipboard = require("utils.telescope_addons").copy_filename_to_clipboard telescope.setup({ defaults = { mappings = { i = { [""] = "move_selection_next", [""] = "move_selection_previous", - [""] = copy_filename_to_clipboard, - }, - n = { - [""] = copy_filename_to_clipboard, }, + n = {}, }, }, pickers = { @@ -37,7 +33,7 @@ end return { "nvim-telescope/telescope.nvim", lazy = false, - tag = '0.1.8', + tag = "0.1.8", dependencies = { "nvim-lua/plenary.nvim" }, config = config, keys = { diff --git a/global/scripts/bin/diary.py b/global/scripts/bin/diary.py index 1b5b615..ceb5372 100755 --- a/global/scripts/bin/diary.py +++ b/global/scripts/bin/diary.py @@ -12,6 +12,7 @@ import sqlite3 import subprocess import sys import tempfile +import time import urllib.parse import urllib.request from datetime import datetime, timedelta, timezone @@ -259,6 +260,14 @@ def fetch_geo(metadata_id: int, create_time_timestamp: int, conn: sqlite3.Connec closest_entry = find_closest_entry( geo_response.get("data", []), create_time_timestamp ) + if closest_entry["tst"] + (48 * 60**2) < time.time(): # 2 days + print("") + if ( + input("Do you really want to use such old geo data? (Y/N) ").strip().upper() + != "Y" + ): + remove_metadata(conn, metadata_id) + sys.exit("Operation canceled.") insert_location(closest_entry, conn, metadata_id) return closest_entry diff --git a/linux/.config/systemd/user/promnesia_index.timer b/linux/.config/systemd/user/promnesia_index.timer index b2e0b67..400a5e0 100644 --- a/linux/.config/systemd/user/promnesia_index.timer +++ b/linux/.config/systemd/user/promnesia_index.timer @@ -3,6 +3,7 @@ Description=Таймер для Promnesia Index [Timer] OnUnitActiveSec=60m +Unit=promnesia_index.service [Install] WantedBy=timers.target