20250118.1737209075

This commit is contained in:
fz0x1 2025-01-18 15:04:35 +01:00
parent ed1f856b78
commit 4093bc4581
5 changed files with 24 additions and 12 deletions

View file

@ -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)

View file

@ -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

View file

@ -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 = {
["<C-j>"] = "move_selection_next",
["<C-k>"] = "move_selection_previous",
["<C-c>"] = copy_filename_to_clipboard,
},
n = {
["<C-c>"] = 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 = {

View file

@ -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

View file

@ -3,6 +3,7 @@ Description=Таймер для Promnesia Index
[Timer]
OnUnitActiveSec=60m
Unit=promnesia_index.service
[Install]
WantedBy=timers.target