Skip to content
Discussion options

You must be logged in to vote

@Cyncrovee I would do it something like that https://github.com/zekefast/relm4-tabbed-load-file-example

It supports two shortcuts <Ctrl> + O and <Ctrl> + <Shift> + O.

  • <Ctrl> + O - opens files in new tabs and allows for multiples files selection
  • <Ctrl> + <Shift> + O - opens file in currently selected tab. It allows to open only single file.

Shortcuts send two distinct messages Msg::OpenFileDialog and Msg::OpenFileInPlaceDialog which opens OpenDialogMulti or OpenDialog. Each dialog once files or file selected forward two distinct event Msg::OpenFiles or Msg::OpenFileInPlace. That's how app opens files in new tabs or replaces gtk::TextBuffer in active (i.e. selected) tab.

In order to replace

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Cyncrovee
Comment options

@Cyncrovee
Comment options

@zekefast
Comment options

Answer selected by Cyncrovee
@Cyncrovee
Comment options

@Cyncrovee
Comment options

@zekefast
Comment options

@Cyncrovee
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants