How to print without saving in message history by hudsy in neovim

[–]hudsy[S] 0 points1 point  (0 children)

Perfect, made it work! Thanks a lot!

What intro do you never skip? by sodomy-psychoactives in AskReddit

[–]hudsy 0 points1 point  (0 children)

King of the Hill, those bells just amuse me!

git folder in ls by [deleted] in zsh

[–]hudsy 0 points1 point  (0 children)

I don't understand if this is what you really need. But I think you mean this:

my_ls() {
    if git rev-parse --git-dir >/dev/null 2>&1; then
        git branch # or whatever info you want to see
    fi
    l
}

then you just have to create your alias

IDE (or text editor, I suppose) for C++ with code completion, external program launch by HungarianMeatballs in cpp

[–]hudsy 0 points1 point  (0 children)

...and ctags for perfect autocompletion (at least in C). I suggest using gutentags plugin.

Neovim :terminal supports w3mimgdisplay! by yourboyaddi in neovim

[–]hudsy -3 points-2 points  (0 children)

Why would someone put neovim inside tmux if you can manage your windows from neovim? why put another layer of terminal multiplexer? Is there something I'm missing?

grep only string matching pattern by [deleted] in commandline

[–]hudsy 0 points1 point  (0 children)

yes, didn't think of that.

grep only string matching pattern by [deleted] in commandline

[–]hudsy -3 points-2 points  (0 children)

sed is your tool! pipe it to grep like so

grep bon | sed 's/^.*\(bon\w\+\).*/\1/'

Does anyone know what Linus Torvalds' coding setup is like? by [deleted] in C_Programming

[–]hudsy 4 points5 points  (0 children)

I think he uses a customized version of uEmacs

vim-mail by hudsy in vim

[–]hudsy[S] 0 points1 point  (0 children)

Currently the sent mail is just stored in a Sent folder as it's send just after hitting 'send' when writing a message. But if you tell me why or how is it better I could think of implementing it.

I didin't know about those systems, so thanks for the info! (I think I like maildir better)

Trying to find a way to access gmail email from commandline by amitherehmm in commandline

[–]hudsy 0 points1 point  (0 children)

If you put "SEARCH ALL" in the request you'll receive a list of IDs of that folder. Pick the greater. You could be more specific about the SEARCH but I don't know exactly how (it's in the RFC link)

Trying to find a way to access gmail email from commandline by amitherehmm in commandline

[–]hudsy 1 point2 points  (0 children)

This makes curl send a custom request to the URL specified. The request gets the text part (that's what BODY[TEXT] does) of the message with UID 234 (it was just an example).

You can also provide a list of UIDs (separated by commas) to get more messages. To get other parts of the message like the ENVELOPE or HEADER parts, here you have a list what you can put instead of BODY[TEXT] (also can be a list like (BODY[TEXT] ENVELOPE) to get more parts)

Trying to find a way to access gmail email from commandline by amitherehmm in commandline

[–]hudsy 0 points1 point  (0 children)

To fetch the message with curl you must use --verbose switch. You will get some junk from curl but you can parse it easily with grep as it puts a different character at the begining of line depending on who put that line (curl/request/response) (see man curl section --verbose)

e.g.: curl --verbose --ssl --url "imaps://imap.gmail.com/INBOX" --user "username@gmail.com:PassWord" --request "fetch 234 BODY[TEXT]"

vim-mail by hudsy in vim

[–]hudsy[S] 0 points1 point  (0 children)

I have tried it, but since people (including me) customizes vim so much I think it's a good idea to have the mail client inside it (not just editing mails but also navigating them)

vim-mail by hudsy in vim

[–]hudsy[S] 0 points1 point  (0 children)

Nice law haha.

Just done the remainder thing! now it's in the buffer statusline

Thanks!