Changelog
v2.5.4
Bug fixes
- Fixed a bug related to the handling of paths which made Cosma unusable on Windows (issue 147)
v2.5.3
This is the first official release for v2.5 of Cosma. We had to make a couple of “crash test” releases following big changes in the program’s build process. Everything should work as expected now.
Bug fixes
- Fixed a bug with accessing translations in
i18n.yml
. - Fixed a bug preventing the user from displaying Cosma’s user manual with the command-line
man
program.
v2.5.0
Additions
- Cosma’s syntax for citations is now 100% identical to Pandoc’s Markdown citation syntax. This adds support for features such as writing
[prefix @key, suffix]
, or renderingAuthor (Year)
when writing@key
. - Link types can now be used on citations. This only works when citation keys are within brackets. Example:
[cites as authority:@engelbart1962]
. - Link types can now be used in CSV data, by adding a
type
header to your links table. (Pull request #104 by @snowsign)
Improvements
- Until now, there were some quirks with the way Cosma handled paths in the configuration. For instance, the value of
export_target
needed to end with a slash/
lest you end up with a weird file name (e.g.export_target: folder
would lead tofoldercosmoscope.html
). This is no longer the case. Paths can be written however you prefer:folder
,./folder
,folder/
,'folder
,"folder"
, etc.
v2.4.1
Improvements
Bug fixes
v2.4.0
Additions
Greater control over what is shown in the cosmoscope:
- The left and right panel can now be hidden or shown by clicking on toggle buttons (respectively at the top left and top right of the cosmoscope). Folding the right panel does not de-select the currently selected record.
- New option:
hide_id_from_record_header
(default:false
). When set totrue
, IDs are not shown in the record header in the cosmoscope.
Improvements
Improved navigation in the graph view:
- When the graph view loads, it shows the entire graph (issue 38).
- Upon selecting a record, the graph view automatically centers on the corresponding node (issue 39).
- If the zoom level has not been modified, the graph view automatically zooms in on the selected node. The effect scales with the graph size: bigger graphs mean a greater zoom-in effect when selecting nodes.
- Pressing C centers the graph view on the selected node (this shortcut existed before v2.0 and had been broken since).
Other improvements:
- The cosmoscope no longer shows empty fields in record headers (e.g. when a record does not have tags, the tags field is hidden).
- If
cosma modelize
encounters an error when parsing a YAML header, it stops and indicates the name of the file in which the error was found (pull request 81 from Yann Trividic).
v2.3.1
Improvements
- Improved the wording (and documentation) of the “views” feature, which will be called the view (singular) until we re-implement the ability for users to save views in the cosmoscope.
Bug fixes
- Links in bibliographies now work properly again (issue 80).
cosma batch
now generates identifiers properly again.
v2.3.0
Additions
- Multi-type nodes are now multi-colored in the graph, and have multiple type indicators in front of their name in the index as well as the Links and Backlinks section of records.
Bug fixes
v2.2.1
Additions
- Added an
AUTHORS
file.
v2.2.0
Additions
- New configuration setting:
references_as_nodes
. When set totrue
, this setting modifies the behavior of the--citeproc
option ofcosma modelize
, making it so that bibliographic references become nodes in the graph: each cited reference is treated as a node and each citation is treated as a link; for each cited reference, a bibliographic record is automatically generated in the cosmoscope; each bibliographic record is presented with contextualized backlinks which correspond to citations of that bibliographic reference in other records.
To use this new feature, you must do three things:
- set
references_as_nodes
totrue
in the project’s configuration; - define a value for
references_type_label
(this is a new setting introduced alongsidereferences_as_nodes
in this release); - create a record type with the same name as the value for
references_type_label
.
For instance:
references_as_nodes: true
references_type_label: "référence"
record_types:
référence:
stroke: "#6C6C6C"
fill: "#6C6C6C"
(You can replace “référence” with whatever you want.)
Then run cosma modelize --citeproc
as usual to generate the cosmoscope.
Improvements
- When a record has no value for a particular metadata field (e.g. no keywords), that field is hidden from the record in the cosmoscope.
v2.1.2
- Reverted a change from v2.1.1: the Links section in the record panel of the cosmoscope is now uncollapsed again.
v2.1.1
Additions
- Links and backlinks context is now shown inline by default. This is set by the new
link_context
parameter in the configuration. Setlink_context
totooltip
instead ofinline
to show link context in a tooltip on hover, as in previous versions of Cosma. - Link type now appears between parentheses before the name of a link or backlink at the bottom of the record.
Improvements
begin
andend
metadata are now known by Cosma as default metadata and do not need to be declared inrecord_metas
Known bugs
- Links in bibliographies are broken due to an extra
</div>
tag in thehref
attribute (issue 80).
v2.1.0
Improvements
Links can now be based on titles
If a record has e.g. title: Evergreen notes
and no id
parameter, then it can be linked to based on the title.
Text case is ignored when parsing but preserved when rendering, so you can write [[Evergreen notes]]
, [[evergreen notes]]
or even [[eVerGReeN NotEs]]
: the link will work regardless, with the text being rendered the way you wrote it.
A new required parameter has been added to the configuration: generate_id
. It modifies the behavior of cosma record
according to three values:
- when
generate_id: always
,cosma record
automatically generates identifiers in new records; - when
generate_id: never
,cosma record
doesn’t add identifiers in new records; - when
generate_id: ask
,cosma record
asks you to typey
(yes) orn
(no) for each new record to choose if you want an identifier to be automatically added or not
The graph is now displayed on an infinite canvas
The graph is no longer constrained (and truncated) by the edges of the window. This makes it possible to view graphs that are larger than the screen, without having to “shrink” the graph so that it fits the window.
We are still ironing the kinks (see Known issues below). Feedback is welcome as always.
Cosma no longer rewrites configuration files
Cosma sometimes encounters a problem when reading a configuration file (e.g. a missing parameter such as the undefined
record type). Instead of silently rewriting the configuration file, Cosma now tries to fall back on internal default configuration values and displays a warning message in the terminal, with the names of the problematic configuration parameters.
Chronological mode has been simplified
Chronological mode now works in only one way: by using the values for begin
and end
metadata from the YAML header of records. (Future updates will provide the ability to customize chronological metadata.) The chronological_record_meta
parameter is deprecated and removed from the configuration
Bug fixes
- Fixed the visual indicator for suggestions that appear when typing into the search bar
- Fixed the warning displayed by Cosma when attempting to create a duplicate record
- Automatically terminate
modelize
when the task has been completed but the process keeps running (issue encountered on macOS)
Known issues
- In the graph view, zooming doesn’t center on the pointer’s position
batch
generates identifiers with extra digits (more than the expected 14), which can mess up writing setups. This doesn’t affect projects withgenerate_id: never
, for whichbatch
correctly generates records without identifiers
v2.0.3
Additions
chronological_record_meta
can be set tomanual
in order to usebegin
andend
metadata from records for Chronological mode
Bug fixes
- Links work correctly when identifiers contain spaces and/or dots
- Type color is displayed correctly when the type name contains dots
Known bugs
chronological_record_meta
reverts tocreated
when set tolast_edit
orlast_open
- the
created
setting forchronological_record_meta
does not work as expected
v2.0.2
- Added a man page, which can be displayed by running
man cosma
in the terminal
v2.0.1
Bug fixes
- Modelization no longer fails on Windows
- Windows style carriage return and line feeds hidden characters (CR LF) are now parsed correctly
- Citations are now processed as expected in backlink context tooltips
v2.0.0
Additions
- Manage multiple configurations (global and local)
- Use alternative syntax for links
- Include user-defined metadata in batch creation
- Display user-defined metadata in records in the cosmoscope
- Exclude certain records when generating the cosmoscope, based on types, keywords and user-defined metadata
- Display nodes in chronological mode
- Embed images in the cosmoscope (in base64). Supported formats: JPG, PNG
- Use an image as default thumbnail for a record type
- Use an image as thumbnail for a record
- Define an outline color for node types
- Choose between fixed size nodes and nodes proportional to their degree
Improvements
- Links in bibliography are now clickable
- Messages displayed at command execution are more informative
- The error and warning report is more informative
- Keywords at the top of cards in the cosmoscope no longer overflow the layout
- Cosma now reads directories recursively (issue #4)
- When
history: true
, cosmoscopes are saved in ahistory
subdirectory, either in the user data directory for global configurations, or in the same directory as the local configuration.
Fixed bugs
- Link/backlink context tooltips now correctly highlight the target record (issue #23)
Known bugs
- Citations are processed in link context tooltips but not in backlink context tooltips
- Windows style carriage return and line feeds hidden characters (CR LF) are not parsed correctly
- When the data comes from online CSV files, the
modelize
command does not terminate after generating the cosmoscope - If a record’s identifier is not a string of numbers, links to that record do not work
- Links to records with spaces in their identifier are not rendered correctly in the record’s body