userguide: Un-hide a TODO block completed in 2011
The userguide contained a commented-out section for marks, which included the line: > TODO: make i3-input replace %s The line was added ina26a11c609
(May 2011), at which point i3-input did not have a -F switch. The switch was added only in1737a78fcd
(September 2011), but the documentation was never updated to enable the commented-out examples.
This commit is contained in:
parent
be6619ff11
commit
7d89e90137
|
@ -2428,6 +2428,21 @@ mark [--add|--replace] [--toggle] <identifier>
|
||||||
unmark <identifier>
|
unmark <identifier>
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
|
|
||||||
|
You can use +i3-input+ to prompt for a mark name, then use the +mark+
|
||||||
|
and +focus+ commands to create and jump to custom marks:
|
||||||
|
|
||||||
|
*Examples*:
|
||||||
|
---------------------------------------
|
||||||
|
# read 1 character and mark the current window with this character
|
||||||
|
bindsym $mod+m exec i3-input -F 'mark %s' -l 1 -P 'Mark: '
|
||||||
|
|
||||||
|
# read 1 character and go to the window with the character
|
||||||
|
bindsym $mod+g exec i3-input -F '[con_mark="%s"] focus' -l 1 -P 'Goto: '
|
||||||
|
---------------------------------------
|
||||||
|
|
||||||
|
Alternatively, if you do not want to mess with +i3-input+, you could create
|
||||||
|
separate bindings for a specific set of labels and then only use those labels:
|
||||||
|
|
||||||
*Example (in a terminal)*:
|
*Example (in a terminal)*:
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
# marks the focused container
|
# marks the focused container
|
||||||
|
@ -2443,21 +2458,6 @@ unmark irssi
|
||||||
[class="(?i)firefox"] unmark
|
[class="(?i)firefox"] unmark
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////
|
|
||||||
TODO: make i3-input replace %s
|
|
||||||
*Examples*:
|
|
||||||
---------------------------------------
|
|
||||||
# Read 1 character and mark the current window with this character
|
|
||||||
bindsym $mod+m exec i3-input -F 'mark %s' -l 1 -P 'Mark: '
|
|
||||||
|
|
||||||
# Read 1 character and go to the window with the character
|
|
||||||
bindsym $mod+g exec i3-input -F '[con_mark="%s"] focus' -l 1 -P 'Goto: '
|
|
||||||
---------------------------------------
|
|
||||||
|
|
||||||
Alternatively, if you do not want to mess with +i3-input+, you could create
|
|
||||||
separate bindings for a specific set of labels and then only use those labels.
|
|
||||||
///////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
[[pango_markup]]
|
[[pango_markup]]
|
||||||
=== Window title format
|
=== Window title format
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue