History

m_option: reintroduce -del to string list and keyvalue list

b56e63e2a96b67aff4050d4db06ee67665893c36 removed this because it was deprecated and not clearly useful. This commit adds this operation back to string lists and keyvalue lists, but with one important change. It operates via the actual values and not indexes. So you can use --foo-del=bar,bar2 to remove bar and bar2 from foo. The difference from using -remove is that this is subject to escaping rules and has the same caveats as -add. Note that -del wasn't added back to the object settings list because you can already remove multiple items with -remove from it.

Dudemanguy committed 1 year ago

Commit d2c409c1 parent 74568163 files · +105 −58Browse files

Showing the changes to DOCS/interface-changes (1 of 3 files). Show all

Unified · Split

DOCS/interface-changes/list-option.txt+1−0
@@ -1 +1,2 @@
11 undeprecate list option suffixes that work with multiple items
2+add `-del` to string list and keyvalue list options

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t