##// END OF EJS Templates
pager: add attend-<command> option...
Matt Mackall -
r21281:bcddddcf default
parent child Browse files
Show More
@@ -39,12 +39,20 b' paged.'
39
39
40 If pager.attend is present, pager.ignore will be ignored.
40 If pager.attend is present, pager.ignore will be ignored.
41
41
42 Lastly, you can enable and disable paging for individual commands with
43 the attend-<command> option. This setting takes precedence over
44 existing attend and ignore options and defaults::
45
46 [pager]
47 attend-cat = false
48
42 To ignore global commands like :hg:`version` or :hg:`help`, you have
49 To ignore global commands like :hg:`version` or :hg:`help`, you have
43 to specify them in your user configuration file.
50 to specify them in your user configuration file.
44
51
45 The --pager=... option can also be used to control when the pager is
52 The --pager=... option can also be used to control when the pager is
46 used. Use a boolean value like yes, no, on, off, or use auto for
53 used. Use a boolean value like yes, no, on, off, or use auto for
47 normal behavior.
54 normal behavior.
55
48 '''
56 '''
49
57
50 import atexit, sys, os, signal, subprocess, errno, shlex
58 import atexit, sys, os, signal, subprocess, errno, shlex
@@ -132,6 +140,10 b' def uisetup(ui):'
132 cmds, _ = cmdutil.findcmd(cmd, commands.table)
140 cmds, _ = cmdutil.findcmd(cmd, commands.table)
133
141
134 for cmd in cmds:
142 for cmd in cmds:
143 var = 'attend-%s' % cmd
144 if ui.config('pager', var):
145 usepager = ui.configbool('pager', var)
146 break
135 if (cmd in attend or
147 if (cmd in attend or
136 (cmd not in ignore and not attend)):
148 (cmd not in ignore and not attend)):
137 usepager = True
149 usepager = True
General Comments 0
You need to be logged in to leave comments. Login now