Bram Schoenmakers
3a5d8e2181
Minor formatting
2024-01-14 10:11:45 +01:00
Bram Schoenmakers
38c68d96fc
Update README with new summary
2024-01-14 10:05:07 +01:00
Bram Schoenmakers
ad737301a3
Language codes should be upcased instead of downcased
2024-01-14 09:47:09 +01:00
Bram Schoenmakers
113f98500d
Remove redundant newline
2024-01-14 09:43:32 +01:00
Bram Schoenmakers
796018bc23
Add universal prefix support for the summarizer commands
...
These prompt the user whether the summary should be inserted at point,
which language to use and which summarizer engine to use.
2024-01-14 09:36:59 +01:00
Bram Schoenmakers
204e1b254a
Look up correct language code from kagi--summarizer-languages
2024-01-14 09:11:09 +01:00
Bram Schoenmakers
f519f245d3
Convert arguments to lowercase
2024-01-14 08:29:08 +01:00
Bram Schoenmakers
f82823c422
Merge branch 'main' of apps.bram85.nl:bram/kagi.el
2024-01-14 08:06:40 +01:00
Bram Schoenmakers
99e8792dee
Update Changelog
2024-01-14 08:04:29 +01:00
Bram Schoenmakers
f5316c1c4e
Allow the user to select target language and engine, ask for insertion
...
With a prefix argument, kagi.el will ask the possibilities one by one.
2024-01-13 21:01:24 +01:00
Bram Schoenmakers
d22315fcf2
Add FastGPT screenshot
2024-01-13 14:20:20 +01:00
Bram Schoenmakers
602a67bb59
Merge branch 'main' into interactive-lang-engine-choice
2024-01-13 12:57:43 +01:00
Bram Schoenmakers
b63844a6f0
Update changelog
2024-01-13 10:15:03 +01:00
Bram Schoenmakers
cd2856b427
Make sure that summary input is at least 50 words
...
This commit addresses the follow-up of issue #2 .
2024-01-13 10:08:34 +01:00
Bram Schoenmakers
9fbf93b860
Improve error handling for the summarizer
2024-01-13 09:03:49 +01:00
Bram Schoenmakers
094628fc8f
Add section on overriding C-c C-o
2024-01-12 14:59:16 +01:00
Bram Schoenmakers
5097198ef9
Return slightly richter test responses
2024-01-11 22:11:56 +01:00
Bram Schoenmakers
4fd1372b42
Add ability to return stubbed responses
...
When developing / debugging, it's a waste of API credit to make actual
calls. Flip the kagi-stubbed-responses flag to t to enable dummy responses.
2024-01-11 21:44:17 +01:00
Bram Schoenmakers
0d1d402ab7
Actually use the new variable name
2024-01-11 20:49:11 +01:00
Bram Schoenmakers
07e6e66c0f
Bump shell-maker dependency
...
This version has protection for accidental buffer closure built-in. No
need to customize it in your own init file.
2024-01-11 20:44:51 +01:00
Bram Schoenmakers
2d3e55c615
Add changelog to README
...
Hoping that Forgejo properly expands macros.
2024-01-11 20:39:18 +01:00
Bram Schoenmakers
7b76af8cd2
Rename variable for consistency
2024-01-11 20:23:16 +01:00
Bram Schoenmakers
48bb880885
Rename the custom variables with the entry point URLs
...
Took the liberty to rename because the package is still in its
infancy. Besides, it's unlikely that anyone would change these URLs in
their init file.
2024-01-11 20:19:06 +01:00
Bram Schoenmakers
bc0eb7023b
Detect URL properly, such that correct API call is made
...
This fixes issue #2 . Whenever a text contains an URL anywhere, the
kagi-url-p function would return positive and the text is submitted as
an URL to the Kagi Summarizer API. Now this is only done when the
string is a URL only, otherwise the text summarizer is invoked.
2024-01-11 19:20:39 +01:00
Bram Schoenmakers
fe72d5cebc
Add configuration example to confirm closing the FastGPT buffer
...
Source:
https://christiantietze.de/posts/2024/01/chatgpt-shell-confirm-close-compose-buffer/
2024-01-11 07:10:52 +01:00
Bram Schoenmakers
1cfb4c6886
Update copyright
2024-01-10 21:46:55 +01:00
Bram Schoenmakers
6d8f786d04
Explain C-c RET
2024-01-10 16:49:04 +01:00
Bram Schoenmakers
93e8ab4426
Mention that the kagi package in on MELPA
2024-01-08 06:21:55 +01:00
Bram Schoenmakers
79fcc316f0
Fix formatting
2024-01-07 22:35:28 +01:00
Bram Schoenmakers
f2533fe259
Minor rephrase
2024-01-05 23:52:24 +01:00
Bram Schoenmakers
4e70777b11
Put engine descriptions in the customize type specification
2024-01-05 23:50:13 +01:00
Bram Schoenmakers
6c8cf63f7c
Fix minor typo in docstring
2024-01-05 23:06:56 +01:00
Bram Schoenmakers
71a626e691
Add language codes to each car of the language list
2024-01-05 23:04:52 +01:00
Bram Schoenmakers
5ae159f109
Remove uncertainty around MELPA submission
...
A MELPA pull request is pending at the moment of writing.
2024-01-05 22:51:57 +01:00
Bram Schoenmakers
4524ed72a2
Allow to change the language and the summarizer engine interactively
...
To be extended to the other interactive functions.
2024-01-05 22:48:46 +01:00
Bram Schoenmakers
7945594767
Rename variable for consistence
2024-01-05 22:32:42 +01:00
Bram Schoenmakers
be2fe9dd3a
Move out the languages or the engines outside the (defcustom) clause
2024-01-05 21:47:47 +01:00
Bram Schoenmakers
f6abd8df17
Restructure the README a bit about the Kagi API setup
2024-01-05 21:09:12 +01:00
Bram Schoenmakers
919de252c5
Interpret the prefix argument differently
2024-01-05 21:03:39 +01:00
Bram Schoenmakers
af326af4f6
Remove stray (message) call
2024-01-05 20:50:45 +01:00
Bram Schoenmakers
4ef9d8f494
Add ability to insert summaries at point
2024-01-05 20:44:24 +01:00
Bram Schoenmakers
540ca654f8
Fix minor formatting
2023-12-31 20:13:45 +01:00
Bram Schoenmakers
830532f503
Use zerop
2023-12-30 10:04:56 +01:00
Bram Schoenmakers
49106bf695
Minor formatting
2023-12-29 23:16:23 +01:00
Bram Schoenmakers
bf74326b6d
Revised the README a bit
2023-12-29 23:16:06 +01:00
Bram Schoenmakers
2afd846d48
Add configuration listing and suggestions for new functions
2023-12-29 22:30:51 +01:00
Bram Schoenmakers
7d69a7a958
Evaluate value in order to send the correct language
2023-12-29 20:29:26 +01:00
Bram Schoenmakers
eb6c8b8bb9
Rename variables, remove the -api- infix for some
...
Took the liberty of doing so, since the package is still quite young,
it shoudn't affect many.
2023-12-29 08:52:47 +01:00
Bram Schoenmakers
d12fa61748
Add flag to toggle cached results from the Summarizer API
2023-12-29 08:45:43 +01:00
Bram Schoenmakers
035fe3beb5
Mention kagi-summarize
2023-12-29 08:25:16 +01:00