GramEditor/gram
39
986
Fork
You've already forked gram
88

[Feature] CLI: arg "add all into one new multibuffer" #372

Open
opened 2026年07月11日 11:51:56 +02:00 by fzzr · 1 comment
Contributor
Copy link

Feature Proposal

I proposing to add new feature and CLI-argument.

Ability to tell CLI to open given specified urls (like file|gram://path:line:row), reusing current window if it exists, into one single multibuffer.

E.g.: gram --multibuffer "gram://foo:42:1" "gram://bar:0:0" to open both foo and bar in the current (reusing latest active or new) a new window, as a single multibuffer with excerpts pointing to specified locations — same as "project search"-multibuffer.

Name of the tab, multibuffer name.
I propose to optionally set name as value for --multibuffer argument:

gram --multibuffer="my name" urls...

This should open urls in a single multibuffer name "my name".

Potential restrictions. It is likely that this feature, when the --multibuffer argument is present, imposes the following restriction on all path arguments passed: the paths must include a location. Otherwise, either the file must not be opened, or (the less desirable option) the default "0:0" will be used as the location.

### Feature Proposal I proposing to add new feature and CLI-argument. Ability to tell CLI to open given specified urls (like `file|gram://path:line:row`), _reusing current window if it exists_, into one single multibuffer. E.g.: `gram --multibuffer "gram://foo:42:1" "gram://bar:0:0"` to open both `foo` and `bar` in the current (_reusing_ latest active or new) a new window, as a single multibuffer with excerpts pointing to specified locations — same as "project search"-multibuffer. Name of the tab, multibuffer name. I propose to optionally set `name` as value for `--multibuffer` argument: ```sh gram --multibuffer="my name" urls... ``` This should open urls in a single multibuffer name "my name". Potential restrictions. It is likely that this feature, when the `--multibuffer` argument is present, imposes the following restriction on all path arguments passed: the __paths must include a location__. Otherwise, either the file must not be opened, or (the less desirable option) the default "0:0" will be used as the location.
fzzr changed title from (削除) [Feature] CLI: arg "add all into one new multibuffer"Summary of the issue (削除ここまで) to [Feature] CLI: arg "add all into one new multibuffer" 2026年07月11日 11:52:48 +02:00
Owner
Copy link

It sounds like a great feature but I need to take a look at the support that is already there.. I've only ever used the command line to open single files or projects, but from the code I know there is some complex logic around opening multiple files and workspaces. Maybe a simpler default behaviour more like what you suggest would be a nice solution..

It sounds like a great feature but I need to take a look at the support that is already there.. I've only ever used the command line to open single files or projects, but from the code I know there is some complex logic around opening multiple files and workspaces. Maybe a simpler default behaviour more like what you suggest would be a nice solution..
Sign in to join this conversation.
main
main
test/wgpu-on-mac
test-ci/failing-test-mac
test/failing-test-mac
test/build-on-22-04
test/wgpu-present-mode-mailbox
v2.1
test/altgr-fix-again
test/2.0.0-rc1
test/linux-build
test/objc2
v1.2.1
3.0.1
3.0.0
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
GramEditor/gram#372
Reference in a new issue
GramEditor/gram
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?