-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telescope: handle multiple selections #88
Conversation
else | ||
for _, entry in pairs(multi) do | ||
local ref = string.format(format_string, entry.id.ref) | ||
string_to_insert = string_to_insert .. ref .. " " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The string connecting the reference keys (" "
here) could be another configuration parameter. I only use papis.nvim
with tex
files and I need to connect them via ,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! I'll make sure to make it configurable and try to see what would be sensible defaults for the various filetypes we configure in cite_formats
. I might in fact add it to that option :)
- requires breaking change in `cite_formats` option
- standardise and rename format_notes and format_references options - keep track of popups to prep for handling multi select and open notes in search
455bfff
to
a473e8c
Compare
hey @maxmahlke, if you have the time, it would be great if you could take another look. i implemented what you asked for (configurable strings between refs) and also managed to sort out the other issues left with opening multiple files (especially notes). note that there are breaking changes concerning the |
6e6bf35
to
43061e7
Compare
TODO: allow inserting complete citations. E.g. rather than |
Hi @jghauser! I tested it briefly and it worked well for me in a |
@maxmahlke, thank you so much! ❤️ Do you think that the separator without space is more common for tex files? I probably just did a super short search and saw someone using a space and made that the default. Happy to change the default though! |
b6620e0
to
1c513b2
Compare
Thanks a lot @maxmahlke, I've merged this now as I think it's ready. 🤞 Let me know if you still come across some issues :) |
TODO: handle creating multiple notes when trying to open notes which do not exist yet[DONE]