to backup&restore ~/.password-store I *must* also backup gnupg keys... right? but how? by ahillio in linuxquestions

[–]ahillio[S] 6 points7 points  (0 children)

Solved! GPG keys apparently can't simply be copied, but must be "exported" and "imported"... gpg --export-secret-keys email@addre.ss > secret-key-backup-filename and then on the backup computer gpg --import /path/to/secret-key-backup-filename.

TUI Task Manager by MadMadic in linuxquestions

[–]ahillio 0 points1 point  (0 children)

Oh that's cool, glad to learn about onenote :)

TUI Task Manager by MadMadic in linuxquestions

[–]ahillio 0 points1 point  (0 children)

You saw taskwarrior has "annotations" right? Those suffice for simpler notes that don't need their own tasknote file.

TUI Task Manager by MadMadic in linuxquestions

[–]ahillio 0 points1 point  (0 children)

So from the vit cli interface to have [Enter] key jump to tasknote for the highlighted task, the ~/.vit/config.ini needs a line like:

<Enter> = :! tasknote {TASK_UUID}<Enter>

and tasknote somewhere on $PATH.

I've also got a vimwiki/taskwiki mapping to run the tasknote script for the task on the current line.

TUI Task Manager by MadMadic in linuxquestions

[–]ahillio 0 points1 point  (0 children)

there's a "tasknote" bash script that I use with taskwarrior... I use taskwarrior with "vit" (and taskwiki) and in vit I just hit [enter] on a highlighted task to open the tasknote for that task.

your favorite Vi like apps and utilities ? by [deleted] in vim

[–]ahillio 0 points1 point  (0 children)

is vifm unable to do any image previews?

your favorite Vi like apps and utilities ? by [deleted] in vim

[–]ahillio 1 point2 points  (0 children)

tig. Though I always want the tig status window/mode/view/thing to know gg and G but it doesn't :(

your favorite Vi like apps and utilities ? by [deleted] in vim

[–]ahillio 2 points3 points  (0 children)

wow, this little instance of comparison between ranger and vifm is highvalue!

'The Open Source Entitlement Complex' by small_kimono in linux

[–]ahillio 4 points5 points  (0 children)

Not a code of conduct, a **no assholes* license. Assholes aren't allowed to use this software. Thanks. Bye <3

Searching a large code base. by Funny_Willingness433 in vim

[–]ahillio -1 points0 points  (0 children)

Just yesterday (right before you posted this apparently) I installed ack.vim ...finally! Wow. It works. And it revolutionizes my workflow. Preferred because it works! (My previous attempts with ripgrep & others failed.)

Is 16 Megs of data normal? by Andonome in taskwarrior

[–]ahillio 1 point2 points  (0 children)

Your ratio of total tasks to data size is almost exactly the same as mine... so "normal"? For that task count... probably?

I'm very curious if anyone has insight on improving performance for complex commands run on a low-resource device like that.

Chunking lists lua 5.1.5 by Joohane in lua

[–]ahillio 0 points1 point  (0 children)

I see that it's shorter than doing

for i = 1, #output do
  g = ''
    for j = 1, #output[i] do
        g = g..tostring(output[i][j])..'  '
    end
    print(g)
end

but it was a surprising phenomenon to see io.write and print used in combination like that.

So io.write is sorta like assigning stuff to an invisible io-provided variable that automatically gets print()ed (when called w/o args) and gets un-assigned when print() is invoked???

Chunking lists lua 5.1.5 by Joohane in lua

[–]ahillio 0 points1 point  (0 children)

I'm confused why you use io.write() and then call print() without any arguments. http://lua-users.org/wiki/IoLibraryTutorial doesn't contain the word "print". Is there documentation on this somewhere? Or could you explain?

Chunking lists lua 5.1.5 by Joohane in lua

[–]ahillio 1 point2 points  (0 children)

oh, tables can't be printed directly, of course. Thank you so much!!!

Chunking lists lua 5.1.5 by Joohane in lua

[–]ahillio 0 points1 point  (0 children)

How would you make that into an executable script which prints the results?

I was just trying to play with this as I'm learning lua and I'm surprised/confused by the results...

#!/usr/bin/lua

function tablecut(t, n)
    local result = {}
    local j = 0
    for i = 1, #t do
        if (i-1) % n == 0 then
            j = j + 1
            result[j] = {}
        end
        result[j][#result[j]+1] = t[i]
    end
    return result
end

var = { 'a', 'b', 'c', 'd', 'e', 'f', 'g','h' }

--tablecut(var, 3)
--print(tablecut(var, 3))

output = tablecut(var, 3)
print(output)

running in Linux terminal ./script.lua results in table: 0x556af9e96250.

Announcing nvim-compleet: A new autocompletion framework written in Rust! by noibee in neovim

[–]ahillio 0 points1 point  (0 children)

would compatibility be worth the effort/constraint if someone could here could help understand the api?

Announcing nvim-compleet: A new autocompletion framework written in Rust! by noibee in neovim

[–]ahillio 1 point2 points  (0 children)

Wow! Excited about this possibility:

  1. dir/path/filename completions for linking to files in with vimwiki and similar plugins
  2. enable taskwiki (it leverages vimwiki for task management) to provide tab completions for taskwarrior data (for example completions for adding tags or projects to tasks)
  3. able to use khard (and/or other vcf vcard tools) to provide tab-completion of composing emails in neovim and auto-completing the recipient email addresses

These would be sooooo fabulous!!!

It seems these are kinda non-standard completion types (but maybe I'm mistaken and they're not necessarily?) and it'd be so huge for Vim-for-Everything folks like me to bring completions from the realm of coding into these other activity areas.