pcubillos / bibmanager

A BibTeX manager for LaTeX projects
https://bibmanager.rtfd.io
MIT License
62 stars 13 forks source link

Feature Request: Display all bibliography in a table #71

Closed Peng-YM closed 4 years ago

Peng-YM commented 4 years ago

First I would like to thank you for making such an awesome tool.

When I use bibmanager, I want to have an overview interface for all items in the database. Optionally, it may further allow users to select one (or multiple) items an export them with key-binding or cursor. I think this would make bibmanager easier to use.

pcubillos commented 4 years ago

Hi, thanks!

I think I get what you are saying. It sounds like a good idea. I'll think about what can be done. PS: In the meantime ... What I sometime do when I want to browse the database is to run bibm edit to navigate through the entries (and then close without editing anything).

Thanks for the suggestion!

pcubillos commented 4 years ago

Hey! OK, so, it took me some time but I learned how to make full-screen applications, and I think I got something cool working. I put a prototype of the application into this gist file bm_browser.py. Can you download it, run it, play around with it, and give me your opinion? I tried to make it pretty intuitive to use, so, let me know if that's not the case.

You will need prompt_toolkit version 3 or above to have it fully working.

Peng-YM commented 4 years ago

Cool, I am willing to explore this new feature and provide some of my opinions. Thank you very much!

Peng-YM commented 4 years ago

I think the idea of the current version is very good, but UI can be further improved. I think the Rich lib is a good choice to display a more intuitive table.

pcubillos commented 4 years ago

Oh, I didn't know about rich, it has some very nice features, and I like the syntax. Thanks! But, do you have something specific in mind that could be clearer? is it the content? or how the content is displayed? or the interface itself? Thanks

AaronDavidSchneider commented 4 years ago

So as I wrote yesterday in #72: I love bm_browser.py! It is indeed a very good addition to bibmanager and its very intuiative!

Here are some thoughts:

Well done! Are you planning on integrating it into bibmanager?

AaronDavidSchneider commented 4 years ago

I forgot: How about a key that lets you open up a paper? (e.g. o)

pcubillos commented 4 years ago

Hey, thanks for the feedback! I read your mind, already had the opening option working! :) I'm having troubles displaying the PDF-fetching dialogs, but in principle that should work as well. And I'll probably throw a go-to-ADS-in-the-browser option too, should be simple to implement. And yes, I'll incorporate the browser into the main project soon, hopefully before the end of the month because I'm doing some PR at the ADASS meeting.

pcubillos commented 4 years ago

Hi People, OK!, I'm finally satisfied with an initial version of the bibmanager browser. I have no idea how to automate the testing of these interactive routines, but I tried manually all the features and didn't see any odd behavior on linux nor OS X. I uploaded a pre-release so you can check it out: pip install bibmanager==1.3.0rc1 I'll keep testing over the week and release the official version 1.3 by next week if all looks ok.

I think the browser has a lot of potential to have all the command-line features but in a more GUI-like way, but I purposely left for the future any features that edit the database because that requires a much deeper thinking.

Thanks a lot for the ideas and feedback so far! (I'll close this issue when releasing v1.3)

AaronDavidSchneider commented 4 years ago

I can confirm that it works flawlessly on OSX Mojave, anaconda python 3.8

I like the new features!

Peng-YM commented 4 years ago

Thank you for your excellent job! I will recommend my college members to use bibmanager 👍

pcubillos commented 4 years ago

Thank you! That's very much appreciated!