204e1b254a
Look up correct language code from kagi--summarizer-languages
2024-01-14 09:11:09 +01:00
f519f245d3
Convert arguments to lowercase
2024-01-14 08:29:08 +01:00
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
602a67bb59
Merge branch 'main' into interactive-lang-engine-choice
2024-01-13 12:57:43 +01:00
b63844a6f0
Update changelog
2024-01-13 10:15:03 +01:00
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
9fbf93b860
Improve error handling for the summarizer
2024-01-13 09:03:49 +01:00
094628fc8f
Add section on overriding C-c C-o
2024-01-12 14:59:16 +01:00
5097198ef9
Return slightly richter test responses
2024-01-11 22:11:56 +01:00
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
0d1d402ab7
Actually use the new variable name
2024-01-11 20:49:11 +01:00
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
2d3e55c615
Add changelog to README
...
Hoping that Forgejo properly expands macros.
2024-01-11 20:39:18 +01:00
7b76af8cd2
Rename variable for consistency
2024-01-11 20:23:16 +01:00
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
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
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
1cfb4c6886
Update copyright
2024-01-10 21:46:55 +01:00
6d8f786d04
Explain C-c RET
2024-01-10 16:49:04 +01:00
93e8ab4426
Mention that the kagi package in on MELPA
2024-01-08 06:21:55 +01:00
79fcc316f0
Fix formatting
2024-01-07 22:35:28 +01:00
f2533fe259
Minor rephrase
2024-01-05 23:52:24 +01:00
4e70777b11
Put engine descriptions in the customize type specification
2024-01-05 23:50:13 +01:00
6c8cf63f7c
Fix minor typo in docstring
2024-01-05 23:06:56 +01:00
71a626e691
Add language codes to each car of the language list
2024-01-05 23:04:52 +01:00
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
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
7945594767
Rename variable for consistence
2024-01-05 22:32:42 +01:00
be2fe9dd3a
Move out the languages or the engines outside the (defcustom) clause
2024-01-05 21:47:47 +01:00
f6abd8df17
Restructure the README a bit about the Kagi API setup
2024-01-05 21:09:12 +01:00
919de252c5
Interpret the prefix argument differently
2024-01-05 21:03:39 +01:00
af326af4f6
Remove stray (message) call
2024-01-05 20:50:45 +01:00
4ef9d8f494
Add ability to insert summaries at point
2024-01-05 20:44:24 +01:00
540ca654f8
Fix minor formatting
2023-12-31 20:13:45 +01:00
830532f503
Use zerop
2023-12-30 10:04:56 +01:00
49106bf695
Minor formatting
2023-12-29 23:16:23 +01:00
bf74326b6d
Revised the README a bit
2023-12-29 23:16:06 +01:00
2afd846d48
Add configuration listing and suggestions for new functions
2023-12-29 22:30:51 +01:00
7d69a7a958
Evaluate value in order to send the correct language
2023-12-29 20:29:26 +01:00
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
d12fa61748
Add flag to toggle cached results from the Summarizer API
2023-12-29 08:45:43 +01:00
035fe3beb5
Mention kagi-summarize
2023-12-29 08:25:16 +01:00
86bc9517c0
Fix regexp to extract the domain name from a URL
2023-12-28 23:21:15 +01:00
94dda4d760
Add function to retrieve summaries from a text or URL
...
This function can be called from Lisp.
2023-12-28 23:13:40 +01:00
575ac76fa3
Perform non-greedy match between the start and end marker
2023-12-28 21:44:33 +01:00
e8950dfd56
Fix bug when bold/code contains backslashes
...
When a replacement text contains a literal \ in should be escaped with
another \.
2023-12-28 20:48:09 +01:00
06c65ae23b
Simplify kagi--display-summary
...
Pass it the summary itself, i.s.o. passing it a function to retrieve
it.
2023-12-28 19:47:59 +01:00
50be37a97e
Rename f parameter to something more descriptive
2023-12-28 18:23:46 +01:00
662d09a956
Add note about the Kagi Privacy Policy
2023-12-28 18:02:39 +01:00
5b5c91bea8
Fix call to renamed function
2023-12-28 17:43:41 +01:00