{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":774378444,"defaultBranch":"main","name":"nu_scripts","ownerLogin":"adagio256","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2024-03-19T12:56:02.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/163904453?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1710852969.620082","currentOid":""},"activityList":{"items":[{"before":"526c9525ea5ef88d32c7f5427ff33c8270918141","after":"cde54b28762923eb8b0422cedd786bafb23281b6","ref":"refs/heads/main","pushedAt":"2024-06-26T20:37:59.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"Prevent branch from merging against main (#886)\n\nHaving the the main branch listed in the checkout command:\r\n```nushell\r\ngit -C $repo checkout -b $branch nushell/main\r\n```\r\n\r\nMade my git to track against the main branch, causing it to push to main\r\ninstead of a branch. Removing the branch fixed the problem:\r\n```nushell\r\n git -C $repo checkout -b $branch\r\n```","shortMessageHtmlLink":"Prevent branch from merging against main (nushell#886)"}},{"before":"a992f5b4fa2f7d907cbe32cb8933f05546b598a4","after":"526c9525ea5ef88d32c7f5427ff33c8270918141","ref":"refs/heads/main","pushedAt":"2024-06-25T12:55:47.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"fix ka command in kubernetes module (#884)\n\nsubstring ..-1 not working. Use str trim to remove '-'","shortMessageHtmlLink":"fix ka command in kubernetes module (nushell#884)"}},{"before":"92db3a88eb0671aa7d9afe0e5f44401885c818d6","after":"a992f5b4fa2f7d907cbe32cb8933f05546b598a4","ref":"refs/heads/main","pushedAt":"2024-06-23T19:38:29.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"Add `jc` wrapper (#883)\n\nThis PR adds `jc` wrapper, so that `jc` output is automatically parsed\r\ninto a nushell data structure and you don't have to use `| from json`\r\nfilter to parse it.\r\n\r\nReferences: https://kellyjonbrazil.github.io/jc/#jc","shortMessageHtmlLink":"Add jc wrapper (nushell#883)"}},{"before":"92f20ff2827b1afb3d06011bc0609a0212c53993","after":"92db3a88eb0671aa7d9afe0e5f44401885c818d6","ref":"refs/heads/main","pushedAt":"2024-06-18T22:33:29.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"update vswhere location for nu_msvs (#882)\n\nThis PR makes the location of vswhere more programmatic by looking where\r\nit's supposed to be located on the file system instead of relying on it\r\nbeing in your path.","shortMessageHtmlLink":"update vswhere location for nu_msvs (nushell#882)"}},{"before":"de2829091f7297c9f7b6f30ee992d08f1066f2ca","after":"92f20ff2827b1afb3d06011bc0609a0212c53993","ref":"refs/heads/main","pushedAt":"2024-06-16T22:58:50.000Z","pushType":"push","commitsCount":6,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"Rmove usage of deprecated `str contains --not` (#880)\n\nRelated: https://github.com/nushell/nushell/issues/13163","shortMessageHtmlLink":"Rmove usage of deprecated str contains --not (nushell#880)"}},{"before":"a1c3ace4326be80ef726c24c75d888878945c740","after":"de2829091f7297c9f7b6f30ee992d08f1066f2ca","ref":"refs/heads/main","pushedAt":"2024-06-06T12:54:37.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"feat: updated rustup completions to use the new rustup help page style (#871)\n\nRustup help page changed, so the commands that were based on the old\r\nlayout to get the completions were broken\r\n\r\nImproved some completions to include a description like \"default\" or\r\n\"installed\"\r\n\r\nAlso added completions for `rustup help`","shortMessageHtmlLink":"feat: updated rustup completions to use the new rustup help page style ("}},{"before":"8a91aa8bf47d95926bf597ee44b6447a0fc6fcdf","after":"a1c3ace4326be80ef726c24c75d888878945c740","ref":"refs/heads/main","pushedAt":"2024-06-05T16:46:41.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"Revert \"Revert \"Add git coommit completions\"\" (#869)\n\nReverts nushell/nu_scripts#868\r\n\r\nI found that this works, if you source these files like\r\n```\r\nuse aliases/git/git-aliases.nu *\r\nuse custom-completions/git/git-completions.nu *\r\n```\r\nbut if you source them like this, it doesn't work.\r\n```\r\nuse custom-completions/git/git-completions.nu *\r\nuse aliases/git/git-aliases.nu *\r\n```\r\n\r\nThis changed recently somewhere in nushell.","shortMessageHtmlLink":"Revert \"Revert \"Add git coommit completions\"\" (nushell#869)"}},{"before":"308d858c4f9c7dff1d0b02856301c38b67e7ee18","after":"8a91aa8bf47d95926bf597ee44b6447a0fc6fcdf","ref":"refs/heads/main","pushedAt":"2024-06-05T10:26:20.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"Added docker completions (#867)\n\nThis script provides completions for the docker command. It is based on\r\nthe official docker documentation.","shortMessageHtmlLink":"Added docker completions (nushell#867)"}},{"before":"5271d68b7a6770eeade257b298089d14c68ab62b","after":"308d858c4f9c7dff1d0b02856301c38b67e7ee18","ref":"refs/heads/main","pushedAt":"2024-06-03T18:30:07.000Z","pushType":"push","commitsCount":4,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"simplify the `std bench` improvement candidate (#865)\n\n@amtoine gave me valuable feedback about the [PR of `std bench`\r\nimprovement](https://github.com/nushell/nu_scripts/pull/859) CANDIDATE\r\ninto `stdlib-candidates`.\r\n\r\nI understood and respected his reasoning about his position. Yet, I\r\nstill believe that users of `std bench` will benefit from my proposal.\r\n\r\nI incorporated some of @amtoine advice in this PR.\r\n\r\nI removed the `bench --units` option as I now believe it is better to\r\nencourage users to use core functionality for formatting duration (which\r\nI had not thought of initially) and to avoid multiplying `--options`.\r\n\r\n```\r\nbench -n 10 {sleep 0.1sec} | format duration ms mean min max stddev\r\n# or\r\nbench -n 10 {sleep 0.1sec} | format duration ms ...($in | columns)\r\n```\r\n\r\nAlso, I removed the option of `--sign-digits` and just hard-coded the\r\nprecision of conversion to the fourth significant digit (which will give\r\na maximum relative error of 0.05%, which I still think is unnecessarily\r\nprecise).\r\n\r\nTo explain my motivation, I added some context from our previous\r\nconversation:\r\n\r\n>> Maybe you would agree with me that this representation is very wordy\r\nand unnecessary, even for a professional?\r\n>> `1sec 333ms 333µs 333ns`\r\n\r\n> maybe, but then i would argue the issue comes from the formatting\r\nnushell does on durations, not from std bench, it's just that Nushell\r\nwill show every part of the duration 😕\r\n\r\nAnd I add here that if Nushell adds the setting for resetting\r\ninsignificant digits from displaying, those conversions could be removed\r\nfor the better. Yet, we don't have such a setting yet, but we already\r\nuse bench and use it quite often. So, I propose this usability\r\nimprovement.\r\n\r\nIn my defense, I would add that the existing `--pretty` option will only\r\nbenefit from the proposed changes (while it can't benefit from `| format\r\nduration ms`).\r\n\r\n```diff\r\n> bench {sleep (10sec / 3)} --rounds 2 --pretty\r\n- 3sec 335ms 974µs 264ns +/- 1ms 108µs 748ns\r\n+ 3sec 335ms +/- 1ms 108µs\r\n```\r\n\r\nFinally, I kept the `--list-timings` option because I strongly believe\r\nthat users much more often will not need expanded 50 lines of timing\r\nresults on their screen (which they can get rid of by adding `| reject\r\ntime` in the second execution of the `bench` command - but I would like\r\nto avoid this second execution).\r\n\r\nI won't be hurt if my proposed changes aren't accepted and applied to\r\nmainstream. Yet, I feel like my initial PR is still valuable and will\r\nbenefit from my current PR's additions.","shortMessageHtmlLink":"simplify the std bench improvement candidate (nushell#865)"}},{"before":"e4dbec663beae2c27a2e1e084514bb9a3f08c861","after":"5271d68b7a6770eeade257b298089d14c68ab62b","ref":"refs/heads/main","pushedAt":"2024-06-01T21:54:02.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"improve `std bench` and add `significant-digits` (#859)\n\nHi! I propose several changes to `std bench`:\r\n- Remove insignificant precision by default (can be reverted with\r\n`--sign-digits=0`).\r\n- Remove the 'times' field by default (can be returned with\r\n`--list-timings`).\r\n- Add an option to set time units (inactive by default).\r\n\r\nFor removing insignificant precision, I needed a new command\r\n`significant-digits` which is also included in this PR. This command has\r\ntests.\r\n\r\n\"image\"\r\nsrc=\"https://github.com/nushell/nu_scripts/assets/4896754/ce98aebe-7c1b-4d8f-b2d0-3282d1ff3883\"\r\n\"image\"\r\nsrc=\"https://github.com/nushell/nu_scripts/assets/4896754/508fef3e-ba70-40fd-8f9e-82b6ac608485\"\r\n\"image\"\r\nsrc=\"https://github.com/nushell/nu_scripts/assets/4896754/af755f28-8506-4f4c-8bc2-91b35798855d\"","shortMessageHtmlLink":"improve std bench and add significant-digits (nushell#859)"}},{"before":"85205b0e66c7515d60069daacc7d222b398b25c2","after":"e4dbec663beae2c27a2e1e084514bb9a3f08c861","ref":"refs/heads/main","pushedAt":"2024-05-30T22:36:47.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"Support whitespace before target name for make completions (#858)\n\nTL;DR: The \"simple\" example from\r\nhttps://www.gnu.org/software/make/manual/html_node/Simple-Makefile.html\r\nis currently not compatible with the custom completion script found in\r\n`custom-completions/make/make-completions.nu`. This PR tries to fix\r\nthat.\r\n\r\nAs I was working on `nur` (https://github.com/ddanier/nur) and the\r\n`nurify` script to convert to `nur` from different task runners\r\n(https://github.com/ddanier/nur/blob/main/scripts/nurify.nu) I wanted to\r\ncreate a good way to convert from using `make`. So I thought the `make`\r\ncompletion would for sure implement a good way to get a list of all\r\npossible `make` targets. Hence I started looking at\r\n`custom-completions/make/make-completions.nu`.\r\n\r\nThen I searched for a good documentation for how `Makefile`s work, as\r\nthe last time I was using this myself is about 5 to 10 years ago. If you\r\nfor example look at the documentation on gnu.org you may find examples\r\nof `Makefile`s not working with the current autocompletion. See\r\nhttps://www.gnu.org/software/make/manual/html_node/Simple-Makefile.html\r\nfor example, the \"simple\" example they provide.\r\n\r\nThe reason for this not working is that the targets use some whitespace\r\nafter the target name. This is somehow allowed and thus valid. See\r\nhttps://www.gnu.org/software/make/manual/html_node/Rule-Introduction.html\r\nfor a quick overview about how the `Makefile`s syntax works. I quickly\r\nchecked this to ensure `make` actually parses this correctly, it really\r\ndoes.\r\n\r\nThis means that the current `make` completion does miss support for the\r\n\"simple\" example provided my `make` itself. So I went on to fix this.\r\n\r\nMy suggested solution is:\r\n* Filter all lines by regex `'^[\\w\\.-]+\\s*:'` to ensure possible targets\r\n - start with some word (also allowing `.` and `-`)\r\n - may have some whitespaces after the word\r\n - has \":\" after this\r\n* Split by the \":\"\r\n* Use first column\r\n* Trim the remaining target name to remove those nasty whitespaces\r\n* Use result for completion\r\n\r\nFor me this did fix the issue with the \"simple\" `Makefile`, allowing me\r\nto put this into my `nurify` script.\r\n\r\nWould be nice to get this \"backported\" to nu scripts as well. Might help\r\nothers 😉","shortMessageHtmlLink":"Support whitespace before target name for make completions (nushell#858)"}},{"before":"c133ab2419b8bf32cc1dd61edf7299e76e291a5a","after":"85205b0e66c7515d60069daacc7d222b398b25c2","ref":"refs/heads/main","pushedAt":"2024-05-29T09:48:11.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"Edit release notes template (#853)\n\n- Removes the note about installing the dataframes feature.\r\n- Moves the command changes section to the top level, renames some sub\r\nsections, and adds some more sub sections.\r\n- Moves and simplifies the hall of fame.","shortMessageHtmlLink":"Edit release notes template (nushell#853)"}},{"before":"42732dad6ac85053bf85565e1a8d3669fedfe261","after":"c133ab2419b8bf32cc1dd61edf7299e76e291a5a","ref":"refs/heads/main","pushedAt":"2024-05-28T18:12:36.000Z","pushType":"push","commitsCount":4,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"Remove `nu-cmd-dataframe` from release script (#857)","shortMessageHtmlLink":"Remove nu-cmd-dataframe from release script (nushell#857)"}},{"before":"407a313bbb13bd5ce2de16768ab2ebec7c111657","after":"42732dad6ac85053bf85565e1a8d3669fedfe261","ref":"refs/heads/main","pushedAt":"2024-05-27T23:47:00.000Z","pushType":"push","commitsCount":10,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"Port `before_v0.60/with_externals` and cleanup (#852)","shortMessageHtmlLink":"Port before_v0.60/with_externals and cleanup (nushell#852)"}},{"before":"7d662ad5c5e6cc33162034f6191f97394bdc9d6b","after":"407a313bbb13bd5ce2de16768ab2ebec7c111657","ref":"refs/heads/main","pushedAt":"2024-05-25T06:52:54.000Z","pushType":"push","commitsCount":44,"pusher":{"login":"adagio256","name":null,"path":"/adagio256","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/163904453?s=80&v=4"},"commit":{"message":"feat: add `bend` completions (#842)\n\nAdds [Bend](https://github.com/HigherOrderCO/Bend) completions for\r\nnushell","shortMessageHtmlLink":"feat: add bend completions (nushell#842)"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"Y3Vyc29yOnYyOpK7MjAyNC0wNi0yNlQyMDozNzo1OS4wMDAwMDBazwAAAARwJsxv","startCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wNi0yNlQyMDozNzo1OS4wMDAwMDBazwAAAARwJsxv","endCursor":"Y3Vyc29yOnYyOpK7MjAyNC0wNS0yNVQwNjo1Mjo1NC4wMDAwMDBazwAAAARTmJw9"}},"title":"Activity · adagio256/nu_scripts"}