prompting functions - chimay/wheel GitHub Wiki

<!-- vim: set filetype=markdown: -->

Switch

Switch element in the wheel

Function Completion list Default binding
switch location locations of current circle <M-w><Enter>
switch circle circles of the current torus <M-w><C-Enter>
switch torus toruses in the wheel <M-w><S-Enter>
multi switch toruses, circles & locations <M-w><M-Enter>
switch location in index index locations <M-w>x
switch circle in index index circles <M-w><C-x>
switch in history history entries <M-w>h
switch in frecency frecency entries <M-w>e

Switch buffer

Function Completion list Default binding
switch buffer listed buffers <M-w>b
switch tabwins visible buffers in tabs & windows <M-w>v

Switch in (neo)vim lists

Function Completion list Default binding
switch marker markers <M-w>'
switch in jump list jumps <M-w>j
switch in change list changes <M-w>,
switch tag tags <M-w>t

Switch dedicated buffer

The default mapping is <M-w><M-space>.

See buffer stack.

You can complete by dedicated buffer pseudo-filename, wich will lead you to the buffer you want.

Example of pseudo-filenames :

  • /wheel/0/tree
  • /wheel/1/history
  • ...

Switch layer in ring

You must be in a dedicated buffer to launch it. The local mapping is <M-l>, or <C-Down>.

See also layer ring.

Search

Search file

Function Completion list Default binding
find file find file in current dir tree <M-w>f
mru file most recently used, non wheel files <M-w>u
outline outline for folds, markdown, org, vimwiki <M-w><C-o>

Search inside file

Function Completion list Default binding
occur : switch line lines of current buffer <M-w>o

Add

Add a new torus

The default mapping is <M-w><S-a>.

Add a circle to the current torus

The default mapping is <M-w><C-a>.

When you add a circle, you are prompted for a name. The completion is based on the current file directory. Different flavours are available :

  • simple : just the directory of the current file
  • path relative to the current local directory
  • absolute path

You can of course adapt the completed name before confirming with <enter>. In fact, the name you choose can be anything you want, as long as it is not already in the current torus.

Add a location to the current circle

The default mapping is <M-w>a.

When you add a location, you are prompted for a name. The completion is based on the current file name. Different flavours are available :

  • file name without extension
  • file name with extension
  • file name with relative path
  • file name with absolute path

You can of course adapt the completed name before confirming with <enter>. In fact, the name you choose can be anything you want, as long as it is not already in the current circle.

You can also add :

  • a file with <M-w>+f
  • a buffer with <M-w>+b
  • all files matching a glob with <M-w>*

Delete

Default mappings :

  • <M-w>d : delete location
  • <M-w><C-d> : delete circle
  • <M-w>D : delete torus

Rename

Rename the current torus

The default mapping is <M-w><S-n>.

Rename the current circle

The default mapping is <M-w><C-n>.

The completion is the same as for adding a circle.

Rename the current location

The default mapping is <M-w>n.

The completion is the same as for adding a location.

Rename current location & file

The default mapping is <M-w><M-n>.

Before renaming files, it's always a good thing to do a backup of your files first, or even better, to work within a VCS repository, like git.

Rename

  • <M-w>n : rename location
  • <M-w><C-n> : rename circle
  • <M-w>N : rename torus
  • <M-w>n : rename location & file

Copy

  • <M-w>c : copy location to another circle
  • <M-w><M-c> : copy circle to another torus
  • <M-w>C : copy torus

Move

  • <M-w>m : copy location to another circle
  • <M-w>M : copy circle to another torus

Yank ring

  • <M-w><C-y> : switch default register to use in yank functions
  • <M-w>y : paste from yank ring linewise, after the sursor
  • <M-w>p : paste from yank ring charwise, after the sursor
  • <M-w>Y : paste from yank ring linewise, before the sursor
  • <M-w>P : paste from yank ring charwise, before the sursor

Linewise means that the paste is inserted after the current line.

Charwise means that the paste is inserted into the current line.

See also linewise and charwise in vim help.

Each candidate of the completion list is one of your yanks, represented as a string.

⚠️ **GitHub.com Fallback** ⚠️