aboutsummaryrefslogtreecommitdiff
path: root/src/bibiman.rs
Commit message (Collapse)AuthorAge
* quit creating note function if citekey contains special charlukeflo2025-07-05
|
* succesfully tested note creationlukeflo2025-07-05
|
* create note function impllukeflo2025-07-05
|
* first steps for create new notelukeflo2025-07-05
|
* use `PopupItem` to determine resource typelukeflo2025-07-04
|
* impl `PopupItem` enum, adapt ui: include colorslukeflo2025-07-04
|
* detach opened note from terminal window running bibimanlukeflo2025-07-03
|
* align resource symbols, update READMElukeflo2025-06-30
|
* update README: note featurelukeflo2025-06-30
|
* opening notes in set editorlukeflo2025-06-30
|
* some more tests for notes, need to elaborate function for opening noteslukeflo2025-06-29
|
* working note-opening action. needs refinement: errors and uilukeflo2025-06-29
|
* remove unneeded structlukeflo2025-06-28
|
* add shortcuts for opening files/links and yanking citekeylukeflo2025-06-28
| | | | | + `o-o`|`o-l` -> shortcut for opening first file/link of current entry + `y-y` -> shortcut for yanking citekey of current entry
* Fix: fix expansion of tilde (`~`) into home dirlukeflo2025-06-09
|
* impl check for valid filepath, update READMElukeflo2025-06-02
|
* better UI for popups, some testingslukeflo2025-05-30
|
* impl open_popup function for all popup caseslukeflo2025-05-30
|
* first steps in rewriting popupslukeflo2025-05-26
|
* enhancement from PR \#28 discussionlukeflo2025-05-25
| | | | | | | + Collect basenames and filepaths from pdf dir into HashMap + Identical basenames in different subdirs are possible + Collected into Vector + TODO: implement selection for multiple files (yank and open)
* implemented a workflow, but citekey matching still buggylukeflo2025-05-24
|
* yank multiple fieldslukeflo2025-03-30
| | | | | | + open a selection menu when pressing `y` + select a field: citekey, weblink, filepath + copy value of selected field to clipboard
* replace Config crate with Figment -> better merging of default and config valueslukeflo2025-02-22
|
* implement working config file construct, error handling should be improvedlukeflo2025-02-21
|
* parse config filelukeflo2025-02-21
| | | | | | | + set default values for config fields + merge fields named in the config file with default values + values from file take precedence over default values + to accomplish this, all config values are wrapped in `Option<T>`
* resource opener in configlukeflo2025-02-19
| | | | | | + implement config field `pdf_opener` for setting app to open PDFs/Epubs + implement config field `url_opener` for setting app to open URLs/DOIs + function to select fallback if no field is provided in config
* Update READMElukeflo2025-02-17
|
* improve file handlinglukeflo2025-02-17
| | | | | | + If config file **and** CLI args have different files/dirs, concat them and open all + Adapt UI to show which files are choosen + TODO: Flag for ignoring config file
* Simplify codebaselukeflo2025-01-29
| | | | | | | + Remove EntryTableItem struct + Simply use the initial generated BibiData struct + One simple `.clone()`, thus, replaces multiple iterations + Keep all other actions
* remove EntryTableItem struct, simply use BibiDatalukeflo2025-01-29
|
* try with borrowed valueslukeflo2025-01-29
|
* Bugfix: Handle citekey duplicateslukeflo2024-12-25
| | | | | | + When adding an entry via DOI check if created citekey is already used + If so, loop over alphabetic chars and append it to citekey + When a unique combination is found, break loop and replace original citekey
* remove unused importlukeflo2024-12-23
|
* replace doi2bib with ureq cratelukeflo2024-12-23
|
* collect code for adding entries and opening files in methodlukeflo2024-12-23
|
* better error messages for doi-addlukeflo2024-12-23
|
* rewrite add-entry via DOI workflowlukeflo2024-12-23
| | | | | | | + split some functions to fit with different popups + select if append to file (and to which) or create new file + error handling if resolving doi ist not possible + error handling for wront doi patterns
* use input struct, place cursor at poslukeflo2024-12-23
|
* feat: handle better arXiv's "citation key" imported from DOITrim Bresilla2024-12-23
| | | | | | | | - Add a new dependency `rand` version `0.8` to the project - Modify the `format_bibtex_entry` function for better readability and citation key cleaning - Introduce logic to clean the citation key by retaining only alphanumerical characters and underscores - Limit the citation key to the last 14 characters if it exceeds that length - Add a new `file` field to the BibTeX entry using the provided file path
* fix: hande better eyre's OK and std's OKTrim Bresilla2024-12-23
| | | | | | - Remove unnecessary aliasing of Result to AOk - Simplify the import statement for Result from color_eyre - Update error handling for the new entry resolution process
* feat: add 'file={}' entry in BibTexTrim Bresilla2024-12-23
| | | | | | | - Improve error handling for failed file appends by formatting content before appending. - Modify the `format_bibtex_entry` function to accept a file path argument. - Add a new `file` field to the formatted BibTeX entry. - Ensure the formatted content is written to the file correctly.
* feat: enhance BibTeX entry formatting and file handlingTrim Bresilla2024-12-23
| | | | | | | - Remove the documentation comment for the `append_to_file` function. - Format the content before writing it to the file in the `append_to_file` function. - Add a new function `format_bibtex_entry` to enhance the readability of raw BibTeX entries. - Implement logic to properly parse and format BibTeX entries in the `format_bibtex_entry` function.
* feat: finalize basic "AddEntry" to add from DOITrim Bresilla2024-12-23
| | | | | | | - Modify the `handle_new_entry_submission` method to accept additional arguments. - Add error handling for failed inserts when appending to the file. - Introduce a new method `append_to_file` to handle file appending logic. - Update file handling to ensure new entries are correctly written to the specified file.
* feat: implement entry management in Bibiman TUITrim Bresilla2024-12-23
| | | | | | | | | | - Add `.devbox` to the `.gitignore` file - Create a new backup file `devbox.json.back` with package and shell initialization configurations - Introduce a new method `add_entry` in the Bibiman struct to manage adding entries - Implement functionality to handle new entry submissions using `doi2bib` - Update command actions to include `AddEntry` - Add `AddEntry` as a new popup type in the TUI for creating entries - Enhance the UI rendering to support the new entry popup with input fields and cursor positioning
* handling of errors and ui for multi file caselukeflo2024-11-25
|
* working multi file approachlukeflo2024-11-23
|
* rename files arg field, start rewriting run_editor fnlukeflo2024-11-23
|
* implement needed dep injection of cli argslukeflo2024-11-23
|
* rewrite cli parsing, allow multiple files and dir as argslukeflo2024-11-22
|
* open multiple files: per CLI possiblelukeflo2024-11-22
|