Commit Graph

59 Commits

Author SHA1 Message Date
BarbUk 3eb60c9626 Make sleep time configurable 2021-11-12 11:52:30 +01:00
BarbUk c4a53091af Fix shellcheck issue 2155 2021-11-12 11:52:18 +01:00
BarbUk aa454f8ca2 Disable shellcheck warning for readonly var 2021-06-18 14:03:12 +04:00
BarbUk 61507d8f3d Fix shellcheck warnings 2021-06-18 13:59:47 +04:00
BarbUk 92e2f9b8af Change timeout to handle slow web apps 2021-06-18 13:49:01 +04:00
BarbUk ca67e806a7 Always sort output 2021-06-18 13:47:06 +04:00
BarbUk 2c30426b60 Use xdg dir and default sort fzf 2021-06-18 13:46:14 +04:00
BarbUk 510cdb9ede Several update:
* remove sponge requirement, use awk inline instead
* add jq requirement and introduce {clipboard_urlencode} placeholder
* rename placeholder var
2020-09-01 18:30:02 +04:00
BarbUk 70921a3e3f Fix paste when focus is slow 2020-07-03 14:34:06 +04:00
BarbUk af7bfe9d6f Big update to snippy:
* cli mode
  - list / cat snippets
  - add / edit snippets
  - search and view with fzf
2020-06-19 10:36:39 +04:00
BarbUk 88fd9418a3 Handle snippet without EOL
fix #3
2020-05-08 20:45:41 +04:00
BarbUk 539c487bf0 Use xsel instead of xclip when target is not necessary and clean
clipboard before using it
2020-04-13 17:05:07 +04:00
BarbUk 6aae510e0f Fix #2 2020-03-13 16:04:25 +04:00
BarbUk 68344d6643 Check if snippet dir exists and create first snippet 2020-03-09 17:09:50 +04:00
BarbUk 59fa862a8f Use xdg config dir to store snippets 2020-03-09 17:09:15 +04:00
BarbUk 4038f3fbab Remove youtube link from snippy as it does not show the current state of
snippy
2020-03-09 17:08:31 +04:00
BarbUk 8613b99c4e New snippy features !
* copy script content when selection is selected by CTRL+Return
 * icons ! Icon name is set from first dir name
2020-02-17 11:35:05 +04:00
BarbUk 4439676c5a Detect vim to handle cursor position 2020-02-09 10:13:14 +04:00
BarbUk 770da804d3 Less sleep 2020-01-28 10:10:19 +04:00
BarbUk 7026d6a2b8 More sleep to handle slow js textarea in chrome 2019-12-17 10:56:21 +04:00
BarbUk ccb74ebb85 Documentation 2019-10-28 15:11:09 +04:00
BarbUk 9305bb28cc Use long options in script 2019-10-28 15:08:28 +04:00
BarbUk a398357fb1 Don't write empty $content in tmpfile and return if tmpfile is empty 2019-10-28 15:07:53 +04:00
BarbUk c172cc4e67 Handle tmpfile in snippet 2019-10-28 15:07:24 +04:00
BarbUk 7181da294b Handle rich snippet 2019-10-28 15:06:57 +04:00
BarbUk b930df4b92 Rename bashdown2 function with bashdown_simple 2019-10-28 15:06:05 +04:00
BarbUk 71e9e29929 Some app need more time to focus and handle the paste event 2019-08-30 13:27:47 +04:00
BarbUk 00df7628e9 Add a new version of bashdown 2019-05-17 17:46:00 +04:00
BarbUk ee60bd3432 Update snippy to handle empty snippets 2019-02-14 17:01:04 +04:00
BarbUk 02976d1829 Update snippy to execute bash script in scripts dir 2019-02-01 10:39:51 +04:00
BarbUk f0a5ab1273 Handle clipboard replace only for snippet with a clipboard placeholder
Current clipboard is saved after bashdown template.
Bashdown command can now work with the clipboard
2018-12-27 15:38:55 +04:00
BarbUk 4cb85271cc Remove last EOL added by awk substitution 2018-12-22 16:22:43 +04:00
BarbUk ec8e31a946 Fix trap to delete temp file 2018-12-22 16:22:22 +04:00
BarbUk 0437577983 Rewrite snippy utility
It now handle:
 * multiline {clipboard}
 * cli {cursor} handling
 * gui {cursor} handling for multiline snippets
2018-12-22 01:25:15 +04:00
BarbUk 9bc10ed984 alacritty support 2018-09-28 16:03:11 +02:00
BarbUk a1a82bd395 Snippy: Detect kitty as a terminal 2018-06-21 10:01:42 +04:00
BarbUk 6279234f22 Snippy: don't force the number odf line to display. 2018-06-21 10:01:00 +04:00
BarbUk 9658cc1405 do not mangle space in while read line loop 2018-05-23 18:01:41 +04:00
BarbUk 749b08929b add a check to execute command beginning by $ 2018-05-17 15:36:07 +04:00
BarbUk a684117ab6 remove useless redirect 2018-04-22 09:50:52 +04:00
BarbUk 022899ced8 correct function name 2018-02-01 23:49:44 +04:00
BarbUk cd7024ff25 rofi change theme 2017-11-07 23:57:18 +04:00
BarbUk de2dd6faf9 rofi 2017-11-07 23:41:07 +04:00
BarbUk e3b06105a7 update 2017-07-28 10:43:26 +04:00
BarbUk cef8eb1db0 shellcheck and grep -v git files 2017-06-11 01:41:31 +04:00
BarbUk 09db4add05 update bash-it 2017-06-03 13:07:37 +04:00
BarbUk 775ad8fad5 ignore .git files 2017-04-13 11:17:31 +04:00
BarbUk 7e7b0a8c65 noparse header to disable bashdown on snippet 2017-03-24 01:11:29 +04:00
BarbUk 36ccda5f30 i only use clippy with file content, not file name
usefull with snippet like:
$(pwgen -s 32 1)
2017-01-29 02:43:23 +04:00
BarbUk 11862dc492 sync module 2016-12-12 20:25:41 +04:00