buivanhuy663 / bookmarksh

GNU General Public License v3.0
4 stars 0 forks source link

[Feature Request] Export Bookmarks In `<relative path>:<line number>` Format #2

Open olfek opened 1 month ago

olfek commented 1 month ago

So we can use https://code.visualstudio.com/docs/getstarted/keybindings#_navigation workbench.action.gotoLine

buivanhuy663 commented 1 month ago

Hi. Thank you for your interest. You mean in the json file. path will be in the form :. or the name of the export file?

olfek commented 1 month ago

@buivanhuy663 I mean in the JSON file

buivanhuy663 commented 1 month ago

@buivanhuy663 I mean in the JSON file However, there is a problem. A tree when exported will have many bookmarks with many different paths. Do you have any solution for this problem?

olfek commented 1 month ago

@buivanhuy663 ...

{
    "FolderA": [
        "relative/path/to/file:12",
        "relative/path/to/file:324",
        "relative/path/to/file:1",
        ...
    ],
    "FolderB": [
        "relative/path/to/file:57",
        "relative/path/to/file:463",
        "relative/path/to/file:3426",
        ...
    ],
    ...
}
buivanhuy663 commented 3 weeks ago

@buivanhuy663 ...

{
    "FolderA": [
        "relative/path/to/file:12",
        "relative/path/to/file:324",
        "relative/path/to/file:1",
        ...
    ],
    "FolderB": [
        "relative/path/to/file:57",
        "relative/path/to/file:463",
        "relative/path/to/file:3426",
        ...
    ],
    ...
}

Hi. I see what you mean. I will consider adding an option when exporting json in tree view. Maybe you have seen it. image

olfek commented 3 weeks ago

Maybe you have seen it.

What do you mean?

@buivanhuy663