Commit graph

38 commits

Author SHA1 Message Date
Clément DOUIN 6e5362e76e
add keybind precision vim readme (#298) 2022-03-02 23:32:00 +01:00
Clément DOUIN e33a9a72e9
release v0.5.4 (#285)
* replace bsd3 license by bsd4

* add attachments with save and send commands (#284)

* set up tpl save and send commands

* improve msg save and send handlers

* add vim msg#add_attachment fn

* improve vim logs

* update changelog

* add attachment keybind vim doc

* reverse range order fetch envelopes (#276)

* bump version v0.5.4
2022-02-05 00:29:57 +01:00
Clément DOUIN 8cdeba62a1
release v0.5.2 (#282)
* doc: fix blur in list msg screenshots (#181)

* fix a typo in mbox arg (#245)

`targetted` to `targeted` 👌🏻

* make inbox, sent and drafts folder customizable (#246)

* mbox: make inbox, sent and drafts folder customizable

* msg: update send handler parameters order

* vim: fix extracting message ids from list (#247)

The current method doesn't work because the list uses a fancy line
character (`│`) as the separator, not a regular pipe character (`|`).
Matching for the first number in the line instead solves the problem and
will continue to work regardless of what separator is used.

* add new line after printing strings (#251)

* init cargo workspace (#252)

* init cargo workspaces

* nix: fix assets path

* doc: update rtp vim plugin

* vim: add error message if loading vim plugin from vim/

* init sub crates (#253)

* init sub crates

* doc: update readme

* doc: improve main readme

* doc: add links, add missing crate task

* doc: update emojis

* update cargo lock

* implement contact completion with completefunc (#250)

This allows users to define a command for contact completion with
`g:himalaya_complete_contact_cmd` and trigger it with `<C-x><C-u>` when
writing an email.

* fix clippy lints (#255)

* revert cargo workspace feature

* fix nix run (#274)

* replace cargo2nix by naersk

* add rust-analyzer and rustfmt to nix build inputs

* remove wiki from git submodules, update changelog

* fix missing range when fetch fails, add more logs (#276)

* add missing fix in changelog

* remove blank lines and spaces from plain parts (#280)

* fix watch command (#271)

* remove also tabs from text parts (#280)

* pin native-tls minor version (#278)

* improve msg sanitization (#280)

* fix mbox vim plugin telescope preview (#249)

* bump version v0.5.2

* update changelog

Co-authored-by: Austin Traver <austintraver@gmail.com>
Co-authored-by: Jason Cox <dev@jasoncarloscox.com>
Co-authored-by: Gökmen Görgen <gkmngrgn@gmail.com>
Co-authored-by: Ethiraric <ethiraric@gmail.com>
2022-02-02 02:21:35 +01:00
Clément DOUIN f9775ae8af
doc: update project desc, bump version v0.5.1 2021-10-24 23:41:12 +02:00
Clément DOUIN 43785b3c1e
vim: render msg table directly from cli (#238)
* vim: render msg table from cli directly

* doc: update changelog
2021-10-24 23:34:04 +02:00
Igbanam Ogbuluijah 45aac9fbec
delete vim read buffers on list msgs (#224)
0.5.0 came with the amazing option of reading the mail in the same view.
The issue with this is, if you go back to the message list and read some
new mail, it opens a new pane to read the new mail. This change follows
the path of modern mail readers which have one pane to load the email in.

Technically, this change closes any open "Himalaya read message" pane
before creating a new one. This close-open should create the illusion of
having the same pane reload the content.

A possible extension of this would be to clear the contents of the pane,
and re-use the same pane to load the new message. A good time to go this
extension is if Himalaya chooses to use persistent connections to the
mail server.
2021-10-14 14:04:52 +02:00
Clément DOUIN b7d068c729
improve folder struct + msg management (#217)
* make imap list and search return msg instead of fetch

* move imap logouts to main fn

* improve list command

* improve search command

* improve flags command

* improve template reply

* improve tpl forward command

* refactor tpl and msg reply/forward

* refactor copy, move and write commands

* refactor attachment command

* fix attachment part of copy and move commands

* fix send, save, read and mbox

* put back notify and watch commands

* fix msg encoding

* refactor edit choices, clean dead code

* fix attachment for write, reply and forward commands

* refactor config mod struct

* refactor project folder struct

* fix vim plugin (#215)
2021-10-10 22:58:57 +02:00
Igbanam Ogbuluijah 794860befe
Fix the message list bug (#216)
With the current version of Himalaya, the Vim front breaks because it
can't find headers.subject in the JSON output from Himalaya. The JSON
output today from Himalaya representing a message looks like so

```json
    {
      "uid": 12345,
      "flags": [],
      "subject": "Subject",
      "subject_len": 7,
      "sender": "Sender",
      "sender_len": 6,
      "date": "2020-12-11 06:38:19"
    },
```

This reverts some of the changes in b9a9d0e, but not all of them.
2021-10-10 09:10:37 +02:00
Clément DOUIN b9a9d0e687
fix vim msg list and read 2021-09-19 18:08:27 +02:00
Clément DOUIN decb4192aa
restore cpo vim plugin 2021-09-11 00:51:25 +02:00
Matthew Toohey 2ac2f53f31
disable cursorline for read/write in vim plugin (#195)
Co-authored-by: mtoohey31 <mtoohey31@users.noreply.github.com>
2021-08-29 22:39:22 +02:00
Clément DOUIN 7b046f87ee
fix new/reply/forward issue in vim plugin (#176) 2021-08-03 22:46:36 +02:00
Clément DOUIN e3d022720d
add ability to change account vim plugin (#91) 2021-06-03 16:08:03 +02:00
Clément DOUIN d41df7d1a4
fix vim help doc (#117) 2021-05-09 17:15:29 +02:00
Clément DOUIN 15376eedc3
remove content-type from templates (#146) 2021-05-09 13:04:03 +02:00
Clément DOUIN ccfc3b0d6e
update vim readme with new mappings and options 2021-05-08 22:27:12 +02:00
Clément DOUIN fada081115
add vim deletion range 2021-05-08 21:55:07 +02:00
Clément DOUIN ac3b0bfdde
add copy/move/delete vim features 2021-05-08 21:35:28 +02:00
Clément DOUIN 4668d51476
use stdin to send message (#78) 2021-05-04 00:15:11 +02:00
Clément DOUIN 08f10266e3
fix vim plugin empty mbox message (#136) 2021-05-03 23:34:16 +02:00
remche 8e98895d5b
add vim mail syntax highlighting (#137) 2021-04-30 13:51:40 +02:00
Clément DOUIN f1e339d720
improve mbox telescope picker sorter 2021-04-24 23:45:21 +02:00
Clément DOUIN 17df485e19
vim table containing emoji (#122) 2021-04-24 23:31:26 +02:00
Clément DOUIN 2d299e1d42
refresh email list on load buffer (#125) 2021-04-24 23:13:51 +02:00
Clément DOUIN dd098399dc
fix broken setting vim (#120) 2021-04-23 18:05:03 +02:00
Clément DOUIN c61ddf3ac5
add notice about hidden vim opt (#112) 2021-04-23 15:00:34 +02:00
Clément DOUIN 366e0b72ed
add idle_hook_cmds setting 2021-04-23 00:20:02 +02:00
Clément DOUIN 22920d794e
simplify vim readme 2021-04-18 23:14:53 +02:00
Axel Dahlberg 8a617c314e
add flag to enable telescope preview and to choose picker (#97)
* Flags to enable telescope preview and to choose picker

* 4 spaces -> 2 space lua

* changes to align with repo code-style
2021-04-13 17:10:42 +02:00
Clément DOUIN e8ae4b025f
release v0.2.5 2021-04-12 00:21:08 +02:00
Axel Dahlberg e15acc34c1
preview mailboxes with telescope (#69)
* Preview mailboxes with telescope

* Output error message in preview

* Throw error

* Refactored himalaya#msg#list and handle errors in telescope preview

* Changes based on feedback

* Added argument should_throw to cli function
2021-04-08 17:41:13 +02:00
Axel Dahlberg 0f1c490dad
fix elseif typo vim plugin (#68) 2021-04-06 11:59:04 +02:00
Clément DOUIN 442dc457b5
add telescope support 2021-04-05 23:57:01 +02:00
Axel Dahlberg fcdad035c7
look for fzf instead of fzf.vim (#62) 2021-04-05 19:21:46 +02:00
Clément DOUIN 409e25fc4d
fix pagination 2021-04-04 15:07:41 +02:00
Clément DOUIN 3d702677b5
refactor vim fn naming 2021-04-04 14:25:55 +02:00
Clément DOUIN c3e690d2b6
update vim doc 2021-04-03 12:30:18 +02:00
Clément DOUIN e23e363e0a
import vim plugin 2021-04-03 12:12:26 +02:00