1
0
Fork 0
Commit graph

305 commits

Author SHA1 Message Date
Bram Schoenmakers 975a386725
Add function to check the grammar of a text or buffer 2024-02-08 22:30:33 +01:00
Bram Schoenmakers b6f059d703
Minor improvements in the README 2024-02-08 22:03:23 +01:00
Bram Schoenmakers a0423c6748
Update / simplify configuration snippet 2024-02-07 18:58:35 +01:00
Bram Schoenmakers 1b88201fa9
Add autoload to kagi-translate and remove from kagi-summarize 2024-02-07 18:12:28 +01:00
Bram Schoenmakers 4842a575dc
Instruct FastGPT to return the translation only 2024-02-07 15:56:52 +01:00
Bram Schoenmakers 826ff6acb4
Rename summary type to summary format, fix docstrings 2024-02-04 08:32:49 +01:00
Bram Schoenmakers 8d33f85234
Fix duplicate summary_type key in request object 2024-02-04 08:29:33 +01:00
Bram Schoenmakers 224972590a
Mention new variable in README 2024-02-03 23:03:15 +01:00
Bram Schoenmakers 88032764df
Add changelog entry 2024-02-03 08:44:49 +01:00
Bram Schoenmakers 42710abac6
Implement summarizer call with ability to produce a take-away 2024-02-03 07:51:06 +01:00
Bram Schoenmakers ed41982ed3
Merge branch 'main' into summary-takeaway 2024-02-03 07:26:52 +01:00
Bram Schoenmakers 6627fc20d2
Version bump for bugfix release 2024-02-03 07:05:12 +01:00
Bram Schoenmakers a30003dc5f
Generate the buffer if it doesn't exist 2024-02-03 07:03:48 +01:00
Bram Schoenmakers e409be20b4
Do not insert a list element if no insert prompt is needed 2024-02-03 07:00:46 +01:00
Bram Schoenmakers 6996098c1d
Fix buffer display 2024-02-03 07:00:31 +01:00
Bram Schoenmakers eb3d486534
Started with takeaway summary support 2024-02-02 21:31:05 +01:00
Bram Schoenmakers 58a8560b8c
Version bump to 0.3 2024-02-02 21:06:57 +01:00
Bram Schoenmakers 80bfa864e6
Add asciicasts demonstrating kagi.el functionality 2024-02-02 21:01:09 +01:00
Bram Schoenmakers 6617fb5e82
Fix call to obtain FastGPT responses 2024-01-28 22:11:36 +01:00
Bram Schoenmakers fe6a9f2b64
Fix construction of the summarizer languages 2024-01-28 20:12:39 +01:00
Bram Schoenmakers f9fd1d294a
Merge branch 'translate' 2024-01-26 18:02:55 +01:00
Bram Schoenmakers e67b76b163
Mention kagi-translate 2024-01-26 17:59:15 +01:00
Bram Schoenmakers b9f47b194c
Take the buffer content if a buffer was chosen 2024-01-26 17:58:04 +01:00
Bram Schoenmakers 4ab79511c9
Trim the translation result
Make sure the result is shown in the echo area when the translation
is a single line followed by a number of trailing newlines.
2024-01-26 07:12:47 +01:00
Bram Schoenmakers 2240dd4a47
Handle case when no input is given to the translator 2024-01-26 07:03:38 +01:00
Bram Schoenmakers eabf43c3d1
Return buffer content if the user selected a buffer 2024-01-25 12:50:57 +01:00
Bram Schoenmakers f62a79d842
Swap arguments, source and target language were flipped 2024-01-25 12:30:07 +01:00
Bram Schoenmakers c86ec2f520
Update Changelog 2024-01-25 12:14:36 +01:00
Bram Schoenmakers cba961a2c8
Convert $italic$ to an italic face in FastGPT output 2024-01-25 10:14:11 +01:00
Bram Schoenmakers cb8ac81db0
Convert markdown **bold** to bold face 2024-01-25 10:10:00 +01:00
Bram Schoenmakers a6cf81c652
Return the language entered by the user
The user is free to pick any language which is not necessarily covered
by kagi--languages.
2024-01-25 08:16:11 +01:00
Bram Schoenmakers d0cd974683
Read source and target language from the minibuffer (with history) 2024-01-25 08:00:08 +01:00
Bram Schoenmakers d41a55fb98
Maintain an alist of (LANGUAGE . LANG-CODE)
From this list, construct a user-facing string for language selection.
Because having the language code embedded in the language name itself
is not always desired.
2024-01-25 06:11:33 +01:00
Bram Schoenmakers dfcc46e34b
Add kagi-translate function 2024-01-21 22:53:27 +01:00
Bram Schoenmakers a0dd0346a2
Do not attempt to insert in read-only buffers 2024-01-21 11:09:25 +01:00
Bram Schoenmakers 0321b635c0
Fix prefix interpretation 2024-01-21 11:05:27 +01:00
Bram Schoenmakers 9e1bdf8428
Update documentation for the new FastGPT functions 2024-01-21 10:51:43 +01:00
Bram Schoenmakers bf599591f0
Extend FastGPT function to insert result at point
Split the interactive and non-interactive functionality in separate
functions. This allows the interactive command to be extended with an
insert parameter.
2024-01-21 10:42:09 +01:00
Bram Schoenmakers f61c3c7d0f
Add kagi-fastgpt-prompt to send queries from the minibuffer or Lisp code 2024-01-21 09:16:01 +01:00
Bram Schoenmakers c6eb41df35
Merge branch 'main' of apps.bram85.nl:bram/kagi.el 2024-01-20 10:36:11 +01:00
Bram Schoenmakers 8aa9510ed1
Fix typo in Korean language code 2024-01-18 20:44:30 +01:00
Bram Schoenmakers 31115b2700 Mention kagi-bold in the configuration block 2024-01-16 21:50:15 +01:00
Bram Schoenmakers 7f89fdbf9b Set the alternative key binding C-c C-o from a mode hook 2024-01-16 21:47:44 +01:00
Bram Schoenmakers 05d37eb89e
Do not ask for summary insertion for read-only buffers 2024-01-16 06:59:15 +01:00
Bram Schoenmakers d75542ac7f
Fix error when either language or engine are nil 2024-01-16 06:30:24 +01:00
Bram Schoenmakers f054879d37
Merge branch 'interactive-lang-engine-choice' 2024-01-15 16:35:47 +01:00
Bram Schoenmakers 69993aa2f2
Merge branch 'main' of apps.bram85.nl:bram/kagi.el 2024-01-15 16:34:45 +01:00
Bram Schoenmakers 75950967b9
Mention the help command, or suggest to use describe-keymap function 2024-01-14 14:57:54 +01:00
Bram Schoenmakers 8b02973ad3
Add FastGPT screenshot 2024-01-14 14:57:54 +01:00
Bram Schoenmakers c2e13b23f8
Mention the help command, or suggest to use describe-keymap function 2024-01-14 10:14:31 +01:00