aboutsummaryrefslogtreecommitdiff
path: root/docs/console_commands.md
blob: 1cdcb6eaddb7b812f610f2e7d12030c04bac0ae8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
title: Console commands
---

# Console commands

Vim Vixen provides a console for `ex`-style commands, similar to Vimperator.

Open the console with <kbd>:</kbd>. Or populate it with initial values using
<kbd>o</kbd>/<kbd>O</kbd>, <kbd>t</kbd>/<kbd>T</kbd>, or
<kbd>w</kbd>/<kbd>W</kbd>.

## `:help`

Open a [Vim Vixen official document](https://ueokande.github.io/vim-vixen/) in a new tab.

## `:open`

The `:open` command operates two different ways, depending on the parameter.
When the parameter is a URL, it's opened in the current tab.

```
:open http://github.com/ueokande
```

Otherwise, the current tab opens a search page with the supplied string (defaults to Google).

```
:open How to contribute to Vim-Vixen
```

To use a search engine other than the default, specify the search engine to use as the first parameter.

```
:open yahoo How to contribute to Vim-Vixen
```

To adjust the default search-engine and add/remove search engines, see the [search engines](./search_engines.html) section.

Use <kbd>Tab</kbd> to select from the autocomplete suggestions. To configure this, set the [`complete` property.](./properties.html#complete)

## `:tabopen`

Open a URL or search-engine query in a new tab.

## `:quit` or `:q`

Close the current tab.

## `:quitall` or `:qa`

Close all tabs.

## `:bdelete`

Close a certain tab.

You can add `!` to the end of the command to close a tab even if it is pinned:

```
:bdelete!
```

## `:bdeletes`

Close tabs matching the specified keywords.

You can add `!` to the end of the command to close pinned tabs:

```
:bdeletes!
```

## `:winopen`

Open a URL or search-engine query in a new window.

## `:buffer`

Select tabs by URL or title keywords.

## `:addbookmark`

Create a bookmark from the current URL.

```
:addbookmark My bookmark title
```

The keymap <kbd>a</kbd> is a convenient way to create a bookmark for the
current page. It populates the console with `:addbookmark` and the title of
the current page.

## `:set`

The `:set` command can be used to temporarily override properties in the
console. See the [properties](./properties.html) section for more details on
the available properties.