8000 should remove `open-another-window` · Issue #77 · redguardtoo/find-file-in-project · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
should remove open-another-window #77
Open
@redguardtoo

Description

@redguardtoo

I should use a global callback flag ffip-callback-open-file (with default implementation), so user can select their own way to open file. See spacemacs' code,

(defun spacemacs/find-file-vsplit (file)
  "find file in vertical split"
  (interactive "FFind file (vsplit): ")
  (let ((buffer (find-file-noselect file)))
    (pop-to-buffer buffer '(spacemacs//display-in-split (split-side . right)))))

(defun spacemacs/find-file-split (file)
  "find file in horizontal split"
  (interactive "FFind file (split): ")
  (let ((buffer (find-file-noselect file)))
    (pop-to-buffer buffer '(spacemacs//display-in-split (split-side . below)))))

defined in spacemacs/layers/+distributions/spacemacs-base/funcs.el

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0