@@ -12,6 +12,14 @@
|
|||||||
### Others
|
### Others
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## Main branch
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- `OutlineOpen` (and `outline.open`) will now focus on the outline is already
|
||||||
|
open when run.
|
||||||
|
([#71](https://github.com/hedyhli/outline.nvim/issues/71))
|
||||||
|
|
||||||
## v1.0.0
|
## v1.0.0
|
||||||
|
|
||||||
### Breaking changes
|
### Breaking changes
|
||||||
|
|||||||
@@ -591,6 +591,9 @@ future.
|
|||||||
:OutlineOpen " opens with 'topleft vsplit'
|
:OutlineOpen " opens with 'topleft vsplit'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If the outline is already open, running this command without bang will focus
|
||||||
|
on the outline window.
|
||||||
|
|
||||||
- **:OutlineClose**: Close outline
|
- **:OutlineClose**: Close outline
|
||||||
|
|
||||||
- **:OutlineFocus**: Toggle focus between outline and code/source window
|
- **:OutlineFocus**: Toggle focus between outline and code/source window
|
||||||
|
|||||||
@@ -600,6 +600,10 @@ function Sidebar:open(opts)
|
|||||||
if not cfg.o.outline_window.focus_on_open or not opts.focus_outline then
|
if not cfg.o.outline_window.focus_on_open or not opts.focus_outline then
|
||||||
vim.fn.win_gotoid(self.code.win)
|
vim.fn.win_gotoid(self.code.win)
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
if cfg.o.outline_window.focus_on_open and opts.focus_outline then
|
||||||
|
self:focus()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user