History log of /openbsd/usr.bin/mg/mg.1 (Results 1 – 25 of 139)
Revision Date Author Comments
# fe834a0f 10-Jul-2024 jmc <jmc@openbsd.org>

an universal -> a universal


# 95bbda4a 09-Jul-2024 op <op@openbsd.org>

document C-u handling on shell-command{,-on-region}, forgot in previous


# eff72e70 04-Jun-2024 op <op@openbsd.org>

add dired-up-directory bound to ^ to go up on directory in dired buffers

diff from Dante Catalfamo (date [at] lambda [dot] cx) with some minor
style nits and the manpage bits from me.

ok florian@


# 9dde1300 16-Oct-2023 op <op@openbsd.org>

reinstate space-to-tabstop entry in the manpage

removed in rev 1.95 since was hidden behind NOTAB, and forgot to be
re-added when no-tab-mode was resurrected.


# 4807cddd 28-Jun-2023 op <op@openbsd.org>

add `notab' to the list of modes that can be set with set-default-mode

specify also that it can be set globally with set-default-mode, as done
in the description of the other built-in modes.

Diff f

add `notab' to the list of modes that can be set with set-default-mode

specify also that it can be set globally with set-default-mode, as done
in the description of the other built-in modes.

Diff from Simon Branch (that I got via jmc@), thanks!

show more ...


# af4c3b2e 28-Apr-2023 op <op@openbsd.org>

fix lfindent (newline-and-indent) comment and description in the man page

for a while it has used only spaces when no-tab-mode is enabled and respected
the current buffer tab width.


# c889eb55 28-Apr-2023 op <op@openbsd.org>

mark up all commands in the man page


# 76935aa2 25-Apr-2023 op <op@openbsd.org>

mark up `mode' in -f description


# 05fa20c6 25-Apr-2023 op <op@openbsd.org>

document that prefix-region with a prefix argument prompts for the string


# fb3e194e 21-Apr-2023 op <op@openbsd.org>

mg: allow to change the tab width

This makes the tab width customizable per-buffer. The new function
`set-tab-width' changes it for the current buffer or the default value
for new buffers if called

mg: allow to change the tab width

This makes the tab width customizable per-buffer. The new function
`set-tab-width' changes it for the current buffer or the default value
for new buffers if called with a prefix argument (or from the startup
file.)

The default tab width is still 8 column.

Together with the newly resurrected no-tab-mode, allows to use mg for a
variety of programming languages and coding styles.

Note that it's not possible to call set-tab-width with auto-execute in
the startup file due to limitations in how auto-execute and the parser
work.

ok tb@

show more ...


# 38733382 17-Apr-2023 op <op@openbsd.org>

resurrect mg' no-tab-mode

It's a mode that makes mg insert spaces up to the next tab stop upon
pressing TAB, along with the various tweaks needed in other places so
for e.g. auto-indent-mode also us

resurrect mg' no-tab-mode

It's a mode that makes mg insert spaces up to the next tab stop upon
pressing TAB, along with the various tweaks needed in other places so
for e.g. auto-indent-mode also uses spaces.

This is not just an unifdef NOTAB: even under no-tab-mode mg should
consider literal TAB characters wide up to the next tab stop, while the
hidden code considered hard tabs to be just control character (i.e. ^I)
with width of two columns. I'm also introducing the helper function
doindent() in utils.c to de-obfuscate the insertion of tabs/spaces until
the given column.

ok tb@

show more ...


# da7e1001 29-Mar-2023 op <op@openbsd.org>

change tagvisit (aka visit-tag-table) to immediately load the tag file

before it used to only record the path to the tag file which was loaded
on demand upon find-tag (M-.). tagvisit did to do a st

change tagvisit (aka visit-tag-table) to immediately load the tag file

before it used to only record the path to the tag file which was loaded
on demand upon find-tag (M-.). tagvisit did to do a stat + access dance
to know if the path was pointing to a regular, readable file and
loadtags (called lazily by find-tag) trusted those checks...

Instead, just load the tags in tagvisit and drop the lazy mechanics.

ok tb@

show more ...


# f3d8826b 20-Oct-2022 op <op@openbsd.org>

add zap-to-char and zap-up-to-char; bind zap-to-char to M-z.

ok florian@


# 41ce3b17 31-Mar-2022 naddy <naddy@openbsd.org>

man pages: add missing commas between subordinate and main clauses

jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@


# c543bf3f 02-May-2021 lum <lum@openbsd.org>

dired-shell-command is listed in the man page under 'DIRED KEY
BINDINGS' but not under 'DIRED COMMANDS'. Add it in.


# 79a91dcb 22-Apr-2021 lum <lum@openbsd.org>

Add a non-interactive version of query-replace-regexp function called
replace-regexp. Unfortunately query-replace-regexp can't be used in a
startup file.


# cc1acc7a 20-Apr-2021 lum <lum@openbsd.org>

Add 'dired-jump' from Philip K. <philip@warpmail.net> sent to tech@
over a year ago. Comments and testing from gkoehler@. Thanks to both.
Also, some modifications from me.


# e40a04c8 26-Mar-2021 lum <lum@openbsd.org>

Invert the 'R' indicator which seems rather unintuitive at the moment,
currently a '*' next to a file's name indicates it is writable. With
this diff it now means it is read-only. Also make the activ

Invert the 'R' indicator which seems rather unintuitive at the moment,
currently a '*' next to a file's name indicates it is writable. With
this diff it now means it is read-only. Also make the active buffer
indicator more visible:'.'->'>'.

show more ...


# c65492eb 20-Mar-2021 lum <lum@openbsd.org>

Add a 'batch' mode to mg via the '-b' command line option which will
initialise a pty, run the specified file of mg commands and then exit.

This is to facilitate mg fitting into the OpenBSD regress

Add a 'batch' mode to mg via the '-b' command line option which will
initialise a pty, run the specified file of mg commands and then exit.

This is to facilitate mg fitting into the OpenBSD regress test
framework and be able to run via a cron job.

show more ...


# 1df4af2f 23-Feb-2021 lum <lum@openbsd.org>

Move -u to alphabetically correct place in options. As spotted by jmc@


# 92787daa 23-Feb-2021 lum <lum@openbsd.org>

Allow the user to specify a path to the mg startup file on the command line.


# a2d22c2d 08-Nov-2019 solene <solene@openbsd.org>

Add that make-backup-files variable is enabled by default

make-backup-files toggles backup, so when you add it in your ~/.mg this
disables backup.

ok benno@


# e2e604b6 02-Jul-2019 lum <lum@openbsd.org>

I totally forgot about the instance where blink-and-insert can be
called from the mg startup file. My previous diff broke that instance.
So this diff reverts my change but adds a man page line to
bli

I totally forgot about the instance where blink-and-insert can be
called from the mg startup file. My previous diff broke that instance.
So this diff reverts my change but adds a man page line to
blink-and-insert in case someone should try to use it interactively,
again. Also, should anyone ever want to add an interactive version of
blink-and-insert in the future, the code is there. And the code could
be useful in another, related instance.

show more ...


# 02567f23 01-Jul-2019 lum <lum@openbsd.org>

add dired-goto-file


# 2bdd82db 17-Jun-2019 lum <lum@openbsd.org>

From Leonid Bobrov: add a condition to {beginning,end}-of-buffer to
push mark only if it's not pushed already.


123456