Skip to content

Multiple from annotations #401

Closed
Closed
@ZYJLiu

Description

@ZYJLiu

Thanks for building and maintaining codehike! Awesome tool

Requesting ability to reference the separate sections of the same file using from annotation mentioned from discussions

```js
// from ./foo.js 1:3
// from ./foo.js 5:7
// from ./foo.js 10
```

Activity

changed the title [-]Request feature to reference the separate sections of the same file using `from` annotation[/-] [+]Request feature to reference separate sections of the same file using `from` annotation[/+] on Jul 25, 2023
pomber

pomber commented on Jul 25, 2023

@pomber
Contributor

Thanks. To clarify, the idea is to be able to import code from different files, and that may also be used to import multiple sections of one file.

```js
// from ./one.js 1:3
// from ./two.js 5:7
// from ./two.js 10
```
changed the title [-]Request feature to reference separate sections of the same file using `from` annotation[/-] [+]Multiple `from` annotations[/+] on Jul 28, 2023
pomber

pomber commented on May 1, 2025

@pomber
Contributor

Fixed in #510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @pomber@ZYJLiu

        Issue actions

          Multiple `from` annotations · Issue #401 · code-hike/codehike