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
f2533fe259
Minor rephrase
2024-01-05 23:52:24 +01:00
6c8cf63f7c
Fix minor typo in docstring
2024-01-05 23:06:56 +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
f6abd8df17
Restructure the README a bit about the Kagi API setup
2024-01-05 21:09:12 +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
8db0c71163
Generate buffer name based on URL or current buffer name
2023-12-28 08:33:09 +01:00
e59fa41dda
Add section on Embark integration
2023-12-27 22:14:43 +01:00
7202a585f5
A bit more words on the password store
2023-12-27 21:09:33 +01:00
9ba371fee4
Add suggestion on how to override a kagi face
2023-12-27 21:04:57 +01:00
f9c65db7c2
Add faces for bold and code
2023-12-27 20:55:35 +01:00
0442dd3848
Restructure loop body
2023-12-27 20:54:34 +01:00
ef9b4c0578
Combine two markup conversion functions into one
2023-12-27 19:28:24 +01:00
8a5a59f39f
Format code snippets in output
2023-12-27 10:08:53 +01:00
c39c32ed85
Erase buffer before inserting the summary
...
In case there's an older summary.
2023-12-26 00:15:18 +01:00
82fcc23f46
Perform error handling
2023-12-25 23:53:30 +01:00
eb1a5a6b36
Header adjustments
2023-12-25 23:06:48 +01:00
3f3107482b
Added and adjusted docstrings
2023-12-25 21:28:44 +01:00
d8ec5b83ac
Update commentary inside kagi.el
2023-12-25 21:05:50 +01:00
3851a2ff4a
Add some docstrings
2023-12-25 13:06:56 +01:00
50939d0f9d
Update references
2023-12-25 12:40:57 +01:00
c58004c16c
Add autoloads
2023-12-25 12:34:42 +01:00
1fa0b05748
Update the README with the Universal Summarizer
2023-12-25 12:31:14 +01:00