aboutsummaryrefslogtreecommitdiffstats
path: root/include/stringop.h
Commit message (Collapse)AuthorAge
* Add format_str() and vformat_str()Libravatar Simon Ser2023-04-14
| | | | Simple helpers to allocate and format a string.
* sway: add bindgesture commandLibravatar Florian Franzen2022-05-30
| | | | Co-authored-by: Michael Weiser <michael.weiser@gmx.de>
* common: make 'lenient_strcmp' arguments constLibravatar Paul Riou2020-12-04
| | | | | | | Prevents build failures when calling the function with 'const char *' arguments. This is also more accurate since the function is not expected to modify the args.
* input_cmd_xkb_file: allow shell path expansionLibravatar Brian Ashworth2019-11-21
| | | | | This allows for shell path expansion for input_cmd_xkb_file. The logic has been extracted from output_cmd_background
* Fix segfaults caused by faulty command parsingLibravatar Matt Coffin2019-06-11
| | | | | | | | | | | | | | | | This patch fixes faulty command parsing introduced by f0f5de9a9e87ca1f0d74e7cbf82ffceba51ffbe6. When that commit allowed criteria reset on ';' delimeters in commands lists, it failed to account for its inner ','-parsing loop eating threw the entire rest of the string. This patch refactors argsep to use a list of multiple separators, and (optionally) return the separator that it matched against in this iteration via a pointer. This allows it to hint at the command parser which separator was used at the end of the last command, allowing it to trigger a potential secondary read of the criteria. Fixes #4239
* stringop.c: remove unused functionsLibravatar Ian Fan2019-03-11
| | | | The only use of `join_list` in swaybar/tray/icon.c has been rewritten.
* stringop.c: rewrite strip_whitespaceLibravatar Ian Fan2019-01-01
|
* list.c: rename free_flat_list to list_free_items_and_destroyLibravatar Ian Fan2018-12-09
|
* list.c: Remove list_foreachLibravatar Ian Fan2018-12-09
| | | | | Most occurrences have been replaced by `free_flat_list` which has been moved from stringop.c to list.c. The rest have been replaced by for loops.
* Use #if instead of #ifdef for WLR_HAS_*Libravatar emersion2018-11-12
|
* Allow reload command to exist anywhere in the command stringLibravatar Ryan Dwyer2018-09-01
| | | | | This fixes a crash if you have commands where reload appears in the middle or at the end, such as `bindsym r mode default, reload`.
* Clean up container title functionsLibravatar Ryan Dwyer2018-05-25
| | | | | | | | | | | | | * Add and use lenient_strcat and lenient_strncat functions * Rename `concatenate_child_titles` function as that's no longer what it does * Rename `container_notify_child_title_changed` because we only need to notify that the tree structure has changed, not titles * Don't notify parents when a child changes its title * Update ancestor titles when changing a container's layout * Eg. create nested tabs and change the inner container to stacking * No need to store tree presentation in both container->name and formatted_title
* Add quotes to multiword arguments.Libravatar Mikkel Oscar Lyderik2016-01-25
| | | | | | | | | | | | | | | | | | | | | This adds quotes around multiword arguments before they are passed to `/bin/sh -c` in an exec command. Example: I connect to irc like this: exec termite -e "mosh server tmux a" Without this patch the arguments are passed to sh as: termite -e mosh server tmux a When it should be: termite -e "mosh server tmux a" For the command to work.
* stringop: lenient_strcmp: Add.Libravatar S. Christoffer Eliesen2015-11-21
|
* We don't need to implement strdupLibravatar Drew DeVault2015-11-12
| | | | After defining _GNU_SOURCE
* merge + no c_extensionsLibravatar taiyu2015-09-18
|\
| * Fix warnings introduced by prior commitLibravatar Drew DeVault2015-09-18
| |
* | multi command keybindsLibravatar taiyu2015-09-14
|/
* Revert "new_workspace null behavior + testmap functions + regex"Libravatar Drew DeVault2015-09-13
| | | | | | | | This reverts commit e1d18e42a8f3a597b9bf5f1bb2ab6c346e4e7983. Fixes #180 cc @taiyu-len
* new_workspace null behavior + testmap functions + regexLibravatar taiyu2015-09-12
|
* config modesLibravatar taiyu2015-09-07
|
* split_string memory leaks cleanedupLibravatar taiyu2015-08-23
|
* added IPC messages get_workspaces and get_outputsLibravatar minus2015-08-20
| | | | | No escaping on container names is done yet, as well as some values are hardcoded because they don't exist yet.
* Revert "enhanced whitespace remover"Libravatar Drew DeVault2015-08-18
| | | | This reverts commit abd0afb03a2929931cb684e5aaeac312affe6e5f.
* enhanced whitespace removerLibravatar taiyu2015-08-18
|
* Move headers to include/Libravatar Drew DeVault2015-08-16