Skip to content
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

[AUT-40] "Append Callout" Command #30

Open
1 task
conneroisu opened this issue May 14, 2023 · 0 comments
Open
1 task

[AUT-40] "Append Callout" Command #30

conneroisu opened this issue May 14, 2023 · 0 comments
Labels
Feature Created by Linear-GitHub Sync

Comments

@conneroisu
Copy link
Owner

conneroisu commented May 14, 2023

Wanted/Expected Behavior

_create_callout(note_title, content)->Exception|None

Encloses given content into a callout syntax and returns the content as a string. If the note title is given, the content will be written to a file with the given title and the file path will be returned. If no note title is given, the content will be returned as a string.

  • Should give the guidance program a list of callout types to choose from based on the content going into the callout.

Actual/Current Behavior

N/A

Tests for Feature

Test 1

Should ensure that attributes of the note become predefined in both cases.
Test Code:

def test_create_callout():
    note_title = "Test Note"
    content = "This is a test note"
    expected = f"!!! {note_title}\n{content}"
    actual = obsidian._create_callout(note_title, content)
    assert expected == actual

Test Results: A file should be found in the vault with the given title and content enclosed in a callout syntax.

From SyncLinear.com | AUT-40

@conneroisu conneroisu added the Feature Created by Linear-GitHub Sync label May 14, 2023
@conneroisu conneroisu changed the title [AUT-40] obsidian_create_callout [AUT-40] obsidian_create_callout Command May 14, 2023
@conneroisu conneroisu changed the title [AUT-40] obsidian_create_callout Command [AUT-40] "Append Callout" Command Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Created by Linear-GitHub Sync
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant