dim.rst: Document aliases extension on dimrc.
PATCH 1/1 dim.rst: Document aliases extension on dimrc.
On my own workflow I was missing a way to download mboxes directly from patchwork with the patchwork id. So my first reflex was to modify dim to fulfil my needs. However that was increasing dim in complexity and dependencies and leaving that messy.
That was when Jani suggested me the dimrc extension with the example that is now part of this spec.
That was clean and simple enough to understand, so Daniel suggested me to add it to the spec.
For record let's put my final local solution that lays now on my own ~/.dimrc
dim_pwaq()
{
if [ -n "$1" ]; then
curl https://patchwork.freedesktop.org/patch/$1/mbox/ | dim_apply_queued
else
echo "Give me a patchwork id"
fi
}
--- dim.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
dim.rst +16 -0
@@ -441,6 +441,22 @@ usage Short form usage help listing all subcommands. Run by default or if an unknown subcommand was passed on the cmdline. +ALIASES +======= + +Extending **dim** functionalities +--------------------------------- + +It is possible to create your own dim helper and aliases by adding them to \$HOME/.dimrc + +dim_my_fancy_list_aliases() +{ + echo "Hello world!" + dim_list_aliases +} + +dim_alias_list_aliases=my-fancy-list-aliases + ENVIRONMENT ===========
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 45 lines · Rodrigo Vivi
On my own workflow I was missing a way to download mboxes directly from patchwork with the patchwork id. So my first reflex was to modify dim to fulfil my needs. However that was increasing dim in complexity and dependencies and leaving that messy.
That was when Jani suggested me the dimrc extension with the example that is now part of this spec.
That was clean and simple enough to understand, so Daniel suggested me to add it to the spec.
For record let's put my final local solution that lays now on my own ~/.dimrc
dim_pwaq()
{
if [ -n "$1" ]; then
curl https://patchwork.freedesktop.org/patch/$1/mbox/ |dim_apply_queued
else
echo "Give me a patchwork id"
fi
}Cc Jani Nikula <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- dim.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)dim.rst +6
-0@@ -441,6 +441,22 @@ usage Short form usage help listing all subcommands. Run by default or if an unknown subcommand was passed on the cmdline. +ALIASES +======= + +Extending **dim** functionalities +--------------------------------- +
dim.rst usage · line 459
Quoted 10 lines
dim.rst +10
-0+It is possible to create your own dim helper and aliases by adding them to \$HOME/.dimrc + +dim_my_fancy_list_aliases() +{ + echo "Hello world!" + dim_list_aliases +} + +dim_alias_list_aliases=my-fancy-list-aliases +
Naughty, naughty:
$ make check shellcheck -e SC2001 -e SC2034 -e SC2046 -e SC2086 -e SC2115 -e SC2119 -e SC2120 -e SC2143 dim bash_completion rst2man --strict --no-raw dim.rst >/dev/null dim.rst:453: (INFO/1) Possible title underline, too short for the title. Treating it as ordinary text because it's so short. Exiting due to level-1 (INFO) system message. Makefile:49: recipe for target 'mancheck' failed make: *** [mancheck] Error 1
BR,
Jani.
Quoted 2 lines
dim.rst +0
-0ENVIRONMENT ===========
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 59 lines · Jani Nikula
Quoted 45 lines · Rodrigo Vivi
On my own workflow I was missing a way to download mboxes directly from patchwork with the patchwork id. So my first reflex was to modify dim to fulfil my needs. However that was increasing dim in complexity and dependencies and leaving that messy.
That was when Jani suggested me the dimrc extension with the example that is now part of this spec.
That was clean and simple enough to understand, so Daniel suggested me to add it to the spec.
For record let's put my final local solution that lays now on my own ~/.dimrc
dim_pwaq()
{
if [ -n "$1" ]; then
curl https://patchwork.freedesktop.org/patch/$1/mbox/ |dim_apply_queued
else
echo "Give me a patchwork id"
fi
}Cc Jani Nikula <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- dim.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)dim.rst +6
-0@@ -441,6 +441,22 @@ usage Short form usage help listing all subcommands. Run by default or if an unknown subcommand was passed on the cmdline. +ALIASES +======= + +Extending **dim** functionalities +--------------------------------- +dim.rst usage · line 459
Quoted 10 lines
dim.rst +10
-0+It is possible to create your own dim helper and aliases by adding them to \$HOME/.dimrc + +dim_my_fancy_list_aliases() +{ + echo "Hello world!" + dim_list_aliases +} + +dim_alias_list_aliases=my-fancy-list-aliases +Naughty, naughty:
Quoted 8 lines
$ make check shellcheck -e SC2001 -e SC2034 -e SC2046 -e SC2086 -e SC2115 -e SC2119 -e SC2120 -e SC2143 dim bash_completion rst2man --strict --no-raw dim.rst >/dev/null dim.rst:453: (INFO/1) Possible title underline, too short for the title. Treating it as ordinary text because it's so short. Exiting due to level-1 (INFO) system message. Makefile:49: recipe for target 'mancheck' failed make: *** [mancheck] Error 1
hm... it seems I need to update my shellcheck package... what version do you use?
here shellcheck complains in non-sense stuff and make check doesn't proceed to that point...
Quoted 15 lines
BR,
Jani.dim.rst usage · line 461
Quoted 2 lines
dim.rst +0
-0ENVIRONMENT ===========--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Rodrigo Vivi Blog: http://blog.vivi.eng.br _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 69 lines · Rodrigo Vivi
Quoted 59 lines · Jani Nikula
Quoted 45 lines · Rodrigo Vivi
On my own workflow I was missing a way to download mboxes directly from patchwork with the patchwork id. So my first reflex was to modify dim to fulfil my needs. However that was increasing dim in complexity and dependencies and leaving that messy.
That was when Jani suggested me the dimrc extension with the example that is now part of this spec.
That was clean and simple enough to understand, so Daniel suggested me to add it to the spec.
For record let's put my final local solution that lays now on my own ~/.dimrc
dim_pwaq()
{
if [ -n "$1" ]; then
curl https://patchwork.freedesktop.org/patch/$1/mbox/ |dim_apply_queued
else
echo "Give me a patchwork id"
fi
}Cc Jani Nikula <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- dim.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)dim.rst +6
-0@@ -441,6 +441,22 @@ usage Short form usage help listing all subcommands. Run by default or if an unknown subcommand was passed on the cmdline. +ALIASES +======= + +Extending **dim** functionalities +--------------------------------- +dim.rst usage · line 459
Quoted 10 lines
dim.rst +10
-0+It is possible to create your own dim helper and aliases by adding them to \$HOME/.dimrc + +dim_my_fancy_list_aliases() +{ + echo "Hello world!" + dim_list_aliases +} + +dim_alias_list_aliases=my-fancy-list-aliases +Naughty, naughty:
Quoted 8 lines
$ make check shellcheck -e SC2001 -e SC2034 -e SC2046 -e SC2086 -e SC2115 -e SC2119 -e SC2120 -e SC2143 dim bash_completion rst2man --strict --no-raw dim.rst >/dev/null dim.rst:453: (INFO/1) Possible title underline, too short for the title. Treating it as ordinary text because it's so short. Exiting due to level-1 (INFO) system message. Makefile:49: recipe for target 'mancheck' failed make: *** [mancheck] Error 1
Quoted 4 lines
hm... it seems I need to update my shellcheck package... what version do you use?
here shellcheck complains in non-sense stuff and make check doesn't proceed to that point...
shellcheck v0.4.4 here
BR,
Jani.
Quoted 17 lines
Quoted 17 lines
BR,
Jani.dim.rst usage · line 461
Quoted 2 lines
dim.rst +0
-0ENVIRONMENT ===========--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/1 dim.rst: Document aliases extension on dimrc.
On my own workflow I was missing a way to download mboxes directly from patchwork with the patchwork id. So my first reflex was to modify dim to fulfil my needs. However that was increasing dim in complexity and dependencies and leaving that messy.
That was when Jani suggested me the dimrc extension with the example that is now part of this spec.
That was clean and simple enough to understand, so Daniel suggested me to add it to the spec.
For record let's put my final local solution that lays now on my own ~/.dimrc
dim_pwaq()
{
if [ -n "$1" ]; then
curl https://patchwork.freedesktop.org/patch/$1/mbox/ | dim_apply_queued
else
echo "Give me a patchwork id"
fi
}
v2: Use code-block directive. Get's cleaner and make check happy.
--- dim.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
dim.rst +18 -0
@@ -441,6 +441,24 @@ usage Short form usage help listing all subcommands. Run by default or if an unknown subcommand was passed on the cmdline. +ALIASES +======= + +Extending **dim** functionalities +--------------------------------- + +It is possible to create your own dim helper and aliases by adding them to \$HOME/.dimrc + +.. code-block:: bash + + dim_my_fancy_list_aliases() + { + echo "Hello world!": + dim_list_aliases: + } + + dim_alias_list_aliases=my-fancy-list-aliases + ENVIRONMENT ===========
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 24 lines · Rodrigo Vivi
On my own workflow I was missing a way to download mboxes directly from patchwork with the patchwork id. So my first reflex was to modify dim to fulfil my needs. However that was increasing dim in complexity and dependencies and leaving that messy.
That was when Jani suggested me the dimrc extension with the example that is now part of this spec.
That was clean and simple enough to understand, so Daniel suggested me to add it to the spec.
For record let's put my final local solution that lays now on my own ~/.dimrc
dim_pwaq()
{
if [ -n "$1" ]; then
curl https://patchwork.freedesktop.org/patch/$1/mbox/ |dim_apply_queued
else
echo "Give me a patchwork id"
fi
}
Quoted 1 line
v2: Use code-block directive. Get's cleaner and make check happy.
Huh?! For me, this patch leads to:
rst2man --strict --no-raw dim.rst >/dev/null
NotImplementedError: docutils.writers.manpage.Translator visiting unknown node type: inline Exiting due to error. Use "--traceback" to diagnose.
Please report errors to <[email protected]>.
Include "--traceback" output, Docutils version (0.13.1 [release]),
Python version (2.7.13), your OS type & version, and the
command line used.
Makefile:49: recipe for target 'mancheck' failed
make: *** [mancheck] Error 1
The issue here is that even after the "sphinxification" we need to have the man pages render using rst2man to have them work properly via 'dim help'. The ".. code-block::" directive is, AFAICT, a sphinxism.
Quoted 19 lines
Cc Jani Nikula <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- dim.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)dim.rst +4
-0@@ -441,6 +441,24 @@ usage Short form usage help listing all subcommands. Run by default or if an unknown subcommand was passed on the cmdline. +ALIASES +======= + +Extending **dim** functionalities
dim.rst usage · line 457
Quoted 10 lines
dim.rst +10
-0+--------------------------------- + +It is possible to create your own dim helper and aliases by adding them to \$HOME/.dimrc + +.. code-block:: bash + + dim_my_fancy_list_aliases() + { + echo "Hello world!": + dim_list_aliases:
Why the colons at the end?
BR,
Jani.
Quoted 6 lines
dim.rst +4
-0+ } + + dim_alias_list_aliases=my-fancy-list-aliases + ENVIRONMENT ===========
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 27 lines · Jani Nikula
Quoted 24 lines · Rodrigo Vivi
On my own workflow I was missing a way to download mboxes directly from patchwork with the patchwork id. So my first reflex was to modify dim to fulfil my needs. However that was increasing dim in complexity and dependencies and leaving that messy.
That was when Jani suggested me the dimrc extension with the example that is now part of this spec.
That was clean and simple enough to understand, so Daniel suggested me to add it to the spec.
For record let's put my final local solution that lays now on my own ~/.dimrc
dim_pwaq()
{
if [ -n "$1" ]; then
curl https://patchwork.freedesktop.org/patch/$1/mbox/ |dim_apply_queued
else
echo "Give me a patchwork id"
fi
}Quoted 1 line
v2: Use code-block directive. Get's cleaner and make check happy.
Quoted 8 lines
Huh?! For me, this patch leads to:
rst2man --strict --no-raw
dim.rst>/dev/null
NotImplementedError: docutils.writers.manpage.Translator visiting unknown node type: inline Exiting due to error. Use "--traceback" to diagnose.
Please report errors to <[email protected]>.
Include "--traceback" output, Docutils version (0.13.1 [release]),
Python version (2.7.13)
my version here is:
$ rst2man --version rst2man (Docutils 0.14, Python 2.7.6, on linux2)
and I get no complain on this :(
Quoted 8 lines
, your OS type & version, and the
command line used.
Makefile:49: recipe for target 'mancheck' failed
make: *** [mancheck] Error 1The issue here is that even after the "sphinxification" we need to have the man pages render using rst2man to have them work properly via 'dim help'. The ".. code-block::" directive is, AFAICT, a sphinxism.
hm... that makes sense anyway...
do you know how we could skip in a way that rst2man and sphinx would both be happy?
Quoted 16 lines
Quoted 16 lines
Cc Jani Nikula <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- dim.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)dim.rst +0
-0@@ -441,6 +441,24 @@ usage Short form usage help listing all subcommands. Run by default or if an unknown subcommand was passed on the cmdline.
Quoted 16 lines
Quoted 4 lines
dim.rst +4
-0+ALIASES +======= + +Extending **dim** functionalitiesdim.rst usage · line 457
Quoted 10 lines
dim.rst +10
-0+--------------------------------- + +It is possible to create your own dim helper and aliases by adding them to \$HOME/.dimrc + +.. code-block:: bash + + dim_my_fancy_list_aliases() + { + echo "Hello world!": + dim_list_aliases:Why the colons at the end?
duh! probably forgot from one of attempts to use a block without complain...
Quoted 17 lines
BR,
Jani.dim.rst usage · line 463
Quoted 6 lines
dim.rst +4
-0+ } + + dim_alias_list_aliases=my-fancy-list-aliases + ENVIRONMENT ===========--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Rodrigo Vivi Blog: http://blog.vivi.eng.br _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 37 lines · Rodrigo Vivi
Quoted 27 lines · Jani Nikula
Quoted 24 lines · Rodrigo Vivi
On my own workflow I was missing a way to download mboxes directly from patchwork with the patchwork id. So my first reflex was to modify dim to fulfil my needs. However that was increasing dim in complexity and dependencies and leaving that messy.
That was when Jani suggested me the dimrc extension with the example that is now part of this spec.
That was clean and simple enough to understand, so Daniel suggested me to add it to the spec.
For record let's put my final local solution that lays now on my own ~/.dimrc
dim_pwaq()
{
if [ -n "$1" ]; then
curl https://patchwork.freedesktop.org/patch/$1/mbox/ |dim_apply_queued
else
echo "Give me a patchwork id"
fi
}Quoted 1 line
v2: Use code-block directive. Get's cleaner and make check happy.
Quoted 8 lines
Huh?! For me, this patch leads to:
rst2man --strict --no-raw
dim.rst>/dev/null
NotImplementedError: docutils.writers.manpage.Translator visiting unknown node type: inline Exiting due to error. Use "--traceback" to diagnose.
Please report errors to <[email protected]>.
Include "--traceback" output, Docutils version (0.13.1 [release]),
Python version (2.7.13)
Quoted 5 lines
my version here is:
$ rst2man --version rst2man (Docutils 0.14, Python 2.7.6, on linux2)and I get no complain on this :(
I've got
rst2man (Docutils 0.13.1 [release], Python 2.7.13, on linux2)
which baffles me a bit.
Quoted 6 lines
Quoted 6 lines
, your OS type & version, and the
command line used.
Makefile:49: recipe for target 'mancheck' failed
make: *** [mancheck] Error 1
Quoted 7 lines
Quoted 3 lines
The issue here is that even after the "sphinxification" we need to have the man pages render using rst2man to have them work properly via 'dim help'. The ".. code-block::" directive is, AFAICT, a sphinxism.
hm... that makes sense anyway...
do you know how we could skip in a way that rst2man and sphinx would both be happy?
Just add :: at the end of the preceding paragraph:
It is possible to create your own dim helper and aliases by adding them to \$HOME/.dimrc::
and add the example in an indented block
Quoted 53 lines
Quoted 17 lines
Quoted 17 lines
Cc Jani Nikula <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- dim.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)dim.rst +0
-0@@ -441,6 +441,24 @@ usage Short form usage help listing all subcommands. Run by default or if an unknown subcommand was passed on the cmdline.Quoted 16 lines
Quoted 4 lines
dim.rst +4
-0+ALIASES +======= + +Extending **dim** functionalitiesdim.rst usage · line 457
Quoted 10 lines
dim.rst +10
-0+--------------------------------- + +It is possible to create your own dim helper and aliases by adding them to \$HOME/.dimrc + +.. code-block:: bash + + dim_my_fancy_list_aliases() + { + echo "Hello world!": + dim_list_aliases:Why the colons at the end?
duh! probably forgot from one of attempts to use a block without complain...
Quoted 17 lines
BR,
Jani.dim.rst usage · line 463
Quoted 6 lines
dim.rst +4
-0+ } + + dim_alias_list_aliases=my-fancy-list-aliases + ENVIRONMENT ===========--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/1 dim.rst: Document aliases extension on dimrc.
On my own workflow I was missing a way to download mboxes directly from patchwork with the patchwork id. So my first reflex was to modify dim to fulfil my needs. However that was increasing dim in complexity and dependencies and leaving that messy.
That was when Jani suggested me the dimrc extension with the example that is now part of this spec.
That was clean and simple enough to understand, so Daniel suggested me to add it to the spec.
For record let's put my final local solution that lays now on my own ~/.dimrc
dim_pwaq()
{
if [ -n "$1" ]; then
curl https://patchwork.freedesktop.org/patch/$1/mbox/ | dim_apply_queued
else
echo "Give me a patchwork id"
fi
}
v2: Use code-block directive. Get's cleaner and make check happy.
v3: Use a generic block instead of sphinx directive otherwise
rst2man can get confused on pur man generation.
--- dim.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
dim.rst +16 -0
@@ -441,6 +441,22 @@ usage Short form usage help listing all subcommands. Run by default or if an unknown subcommand was passed on the cmdline. +ALIASES +======= + +Extending **dim** functionalities +--------------------------------- + +It is possible to create your own dim helper and aliases by adding them to \$HOME/.dimrc:: + + dim_my_fancy_list_aliases() + { + echo "Hello world!": + dim_list_aliases: + } + + dim_alias_list_aliases=my-fancy-list-aliases + ENVIRONMENT ===========
Signature · 6 lines
2.13.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 24 lines · Rodrigo Vivi
On my own workflow I was missing a way to download mboxes directly from patchwork with the patchwork id. So my first reflex was to modify dim to fulfil my needs. However that was increasing dim in complexity and dependencies and leaving that messy.
That was when Jani suggested me the dimrc extension with the example that is now part of this spec.
That was clean and simple enough to understand, so Daniel suggested me to add it to the spec.
For record let's put my final local solution that lays now on my own ~/.dimrc
dim_pwaq()
{
if [ -n "$1" ]; then
curl https://patchwork.freedesktop.org/patch/$1/mbox/ |dim_apply_queued
else
echo "Give me a patchwork id"
fi
}
Quoted 7 lines
v2: Use code-block directive. Get's cleaner and make check happy.
v3: Use a generic block instead of sphinx directive otherwise
rst2man can get confused on pur man generation.Cc Jani Nikula <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>
Pushed, thanks.
BR,
Jani.
Quoted 30 lines
--- dim.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)dim.rst +16
-0@@ -441,6 +441,22 @@ usage Short form usage help listing all subcommands. Run by default or if an unknown subcommand was passed on the cmdline. +ALIASES +======= + +Extending **dim** functionalities +--------------------------------- + +It is possible to create your own dim helper and aliases by adding them to \$HOME/.dimrc:: + + dim_my_fancy_list_aliases() + { + echo "Hello world!": + dim_list_aliases: + } + + dim_alias_list_aliases=my-fancy-list-aliases + ENVIRONMENT ===========
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx