{"id":31978557,"url":"https://github.com/deinstapel/cursive-aligned-view","last_synced_at":"2025-10-14T22:22:58.894Z","repository":{"id":44958345,"uuid":"205866748","full_name":"deinstapel/cursive-aligned-view","owner":"deinstapel","description":"A view wrapper for gyscos/cursive views which aligns child views 🖥️","archived":false,"fork":false,"pushed_at":"2024-08-12T17:55:42.000Z","size":162,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-13T00:27:15.749Z","etag":null,"topics":["align","alignment","cursive","cursive-views","terminal"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deinstapel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-02T13:47:27.000Z","updated_at":"2025-04-05T09:17:51.000Z","dependencies_parsed_at":"2024-08-12T20:21:00.059Z","dependency_job_id":"9d476dda-9b42-428d-bf96-8b2a0368d2ce","html_url":"https://github.com/deinstapel/cursive-aligned-view","commit_stats":{"total_commits":62,"total_committers":6,"mean_commits":"10.333333333333334","dds":0.6612903225806452,"last_synced_commit":"d116b783a6d2cde6c9c68db1c6b8b9a13609919d"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/deinstapel/cursive-aligned-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deinstapel%2Fcursive-aligned-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deinstapel%2Fcursive-aligned-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deinstapel%2Fcursive-aligned-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deinstapel%2Fcursive-aligned-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deinstapel","download_url":"https://codeload.github.com/deinstapel/cursive-aligned-view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deinstapel%2Fcursive-aligned-view/sbom","scorecard":{"id":332734,"data":{"date":"2025-08-11","repo":{"name":"github.com/deinstapel/cursive-aligned-view","commit":"6161b0498a8e7438629555326b553824f6b18592"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 4/22 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test_and_push.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: downloadThenRun not pinned by hash: .github/workflows/test_and_push.yml:18","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T03:58:29.045Z","repository_id":44958345,"created_at":"2025-08-18T03:58:29.046Z","updated_at":"2025-08-18T03:58:29.046Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021779,"owners_count":26087055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["align","alignment","cursive","cursive-views","terminal"],"created_at":"2025-10-14T22:22:55.251Z","updated_at":"2025-10-14T22:22:58.888Z","avatar_url":"https://github.com/deinstapel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to cursive-aligned-view 👋\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/deinstapel/cursive-aligned-view/actions\"\u003e\n    \u003cimg src=\"https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fdeinstapel.github.io%2Fcursive-aligned-view%2Fstable-build.json\" alt=\"stable build\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/deinstapel/cursive-aligned-view/actions\"\u003e\n    \u003cimg src=\"https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fdeinstapel.github.io%2Fcursive-aligned-view%2Fnightly-build.json\" alt=\"nightly build\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/cursive-aligned-view\"\u003e\n    \u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/cursive-aligned-view.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://docs.rs/cursive-aligned-view\"\u003e\n    \u003cimg alt=\"Docs.rs\" src=\"https://docs.rs/cursive-aligned-view/badge.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/deinstapel/cursive-aligned-view/blob/master/LICENSE\"\u003e\n    \u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/deinstapel/cursive-aligned-view.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://spacemacs.org\"\u003e\n    \u003cimg src=\"https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://makeapullrequest.com\"\u003e\n    \u003cimg alt=\"PRs Welcome\" src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003ci\u003eA view wrapper for\n  \u003ca href=\"https://github.com/gyscos/cursive\"\u003egyscos/cursive\u003c/a\u003e\n  views which aligns child views\u003c/i\u003e\n\u003c/p\u003e\n\n---\n\nThis project provides an `AlignedView` for [gyscos/cursive](https://github.com/gyscos/cursive) views which makes it possible to align the child view (center, left, right, top, bottom). The `AlignedView` uses the `required_size` reported by the child view and fills the rest of the available space with the views background color.\n\n## How does it look like? `demo` [![terminalizer](https://img.shields.io/badge/GIF-terminalizer-blueviolet.svg)](https://github.com/faressoft/terminalizer)\n\n\u003cdetails\u003e\n  \u003csummary\u003eExpand to view\u003c/summary\u003e\n  \u003cimg src=\"assets/demo.gif\" alt=\"aligned-view demo\"\u003e\n\u003c/details\u003e\n\n## Usage\n\nSimply add to your `Cargo.toml`\n\n```toml\n[dependencies]\ncursive-aligned-view = \"^0\"\n```\n\n### Aligning a child view\n\nThe easiest way to align a view is via the `Alignable` trait:\n\n```rust\nuse cursive_aligned_view::Alignable;\n\nlet aligned = child_view.align_center();\n```\n\nThis is the preferred way as it is *chainable* and consistent with cursive's `Boxable` and `Identifiable` traits.\n\nAs an alternative you can use the `AlignedView` constructors directly:\n\n```rust\nuse cursive_aligned_view::AlignedView;\n\nlet aligned = AlignedView::with_center(child_view);\n```\n\nLook into the [documentation](https://docs.rs/cursive-aligned-view) for a detailed explanation on the API.\n\n### Supported Alignments\n\n| Alignment     | Construction method   |\n|---------------|-----------------------|\n| top left      | `align_top_left`      |\n| top center    | `align_top_center`    |\n| top right     | `align_top_right`     |\n| center left   | `align_center_left`   |\n| center        | `align_center`        |\n| center right  | `align_center_right`  |\n| bottom left   | `align_bottom_left`   |\n| bottom center | `align_bottom_center` |\n| bottom right  | `align_bottom_right`  |\n\n## Troubleshooting\n\nIf you find any bugs/unexpected behaviour or you have a proposition for future changes open an issue describing the current behaviour and what you expected.\n\n## Development [![cargo test](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fdeinstapel.github.io%2Fcursive-aligned-view%2Fcargo-test.json)](https://github.com/deinstapel/cursive-aligned-view/actions)\n\n### Running the tests\n\n#### Preparing integration tests\n\nTo perform the test it's advisable to install [`cargo-insta`](https://github.com/mitsuhiko/insta) in case your tests fail and you want to inspect the received output.\n```\n$ cargo install cargo-insta\n```\n\nYou will also need insta to validate new tests you add or update older ones.\n\n#### Running all test suites\n\nJust run\n\n```\n$ cargo test\n```\n\nto execute all available tests.\n\n---\n\nOr if you want to interactively inspect failed tests\n```\n$ cargo insta test\n```\n\n#### shields.io endpoints\n\n[shields.io](https://shields.io) endpoints are generated inside the `./target/shields` folder. They are used in this README.\n\n## Authors\n\n**Fin Christensen**\n\n\u003e [:octocat: `@fin-ger`](https://github.com/fin-ger)  \n\u003e [:elephant: `@fin_ger@weirder.earth`](https://weirder.earth/@fin_ger)  \n\u003e [:bird: `@fin_ger_github`](https://twitter.com/fin_ger_github)  \n\n\u003cbr\u003e\n\n**Johannes Wünsche**\n\n\u003e [:octocat: `@jwuensche`](https://github.com/jwuensche)  \n\u003e [:elephant: `@fredowald@mastodon.social`](https://mastodon.social/web/accounts/843376)  \n\u003e [:bird: `@Fredowald`](https://twitter.com/fredowald)  \n\n## Show your support\n\nGive a :star: if this project helped you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeinstapel%2Fcursive-aligned-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeinstapel%2Fcursive-aligned-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeinstapel%2Fcursive-aligned-view/lists"}