Skip to content
Snippets Groups Projects
  1. Jul 09, 2017
  2. Jul 08, 2017
  3. Jul 07, 2017
  4. Jul 06, 2017
  5. Jul 05, 2017
    • clippix's avatar
      Store Init In XDG App Dir (#363) · 62d2044e
      clippix authored and Michael Aaron Murphy's avatar Michael Aaron Murphy committed
      * Store configurations in the correct XDG App Dir
      
      Read the init file from the XDG config app dir using the app_dirs crate,
      and set the HISTORY_FILE to be located in the XDG data app dir.
      The init file is now named initrc instead of .ionrc.
      
      * Enable history file by default
      
      Set HISTORY_FILE_ENABLED to "1" so that ion writes history by default.
      62d2044e
  6. Jul 04, 2017
    • Michael Aaron Murphy's avatar
      Monitor Child w/ waitpid & Fork Shell w/ BG Jobs · 4bae77d2
      Michael Aaron Murphy authored
      This change will modify the way that job statuses are monitored.
      Rather than using the wait() method on a child, this will use
      the lower level waitpid() method from the nix crate, enabling
      the ability to detect and record changes to the child process
      automatically.
      
      This also implements a change that will fork the shell when a
      command is executed that needs to be run in the background.
      However, these commands still don't work at the moment due to a
      parsing issue.
      4bae77d2
  7. Jul 02, 2017
  8. Jul 01, 2017
  9. Jun 29, 2017
    • Hunter Goldstein's avatar
      Introduce a match-case construct to Ion's grammar (#351) · 026177e5
      Hunter Goldstein authored and Michael Aaron Murphy's avatar Michael Aaron Murphy committed
      * [WIP] Add a rudimentary match statement to the language
      
      * Parsing a match construct now correctly resumes on new line
      
      Before, parsing a match construct would depend on all parts of the match
      statement being in one piece, it can now accept it over multiple
      invocations of `on_command`
      
      * Match statement now forwards all conditions
      
      * Most errors are copy / paste errors
      
      * Finish comment, remove useless continue
      
      * case values are now unquoted string literals
      
      * Added example for match
      
      * case expressions are now arbitrary commands
      
      The values in case branches can now be arbitrary commands that work off
      set intersection (for now). For example, the case:
      ```
      case @(seq 0 10)
      ```
      would match any number from 0 to 10. Additionally, alternation can be
      done through an array, like so:
      ```
      match $filetype
        case ["image/jpeg" "image/png"]
        ...
        end
      end
      ```
      
      * Remove XXX referencing shorthand
      026177e5
    • Liam's avatar
      update deps (#355) · b483756d
      Liam authored and Michael Aaron Murphy's avatar Michael Aaron Murphy committed
      b483756d
    • Hunter Goldstein's avatar
      Additional fix for #352 (#354) · 753aae57
      Hunter Goldstein authored and Michael Aaron Murphy's avatar Michael Aaron Murphy committed
      * Additional fix for #352
      
      Due to the condition that the parent directory cannot be the current
      directory, simple commands like `rm file_in_this_dir.txt` were broken.
      This should fix said case.
      
      * Re-add variable logic
      
      * Refactor `complete_as_file` to be more readable and expand logic
      753aae57
  10. Jun 28, 2017
  11. Jun 27, 2017
    • Hunter Goldstein's avatar
      Ignore Empty Strings in Word Parsing (#346) · 3277243d
      Hunter Goldstein authored and Michael Aaron Murphy's avatar Michael Aaron Murphy committed
      * Empty quoted string now results in empty Normal WorkToken
      
      * Adjusted double-quote logic to ignore empty strs on token edge
      
      Before if we had input like `"$FOO"`, the token iterator would generate
      a sequence like:
      ```
      [Normal(""), Variable(FOO), Normal("")]
      ```
      which doesn't really make much sense. What this does is allows for
      "empty string literals" such as `""` while ensuring that empty strings
      that are generated through token edges are ignored.
      
      * Remove silly filter_empty fn
      3277243d
  12. Jun 25, 2017
  13. Jun 24, 2017
    • Hunter Goldstein's avatar
      Refactor `array_expand` (and squash bug) (#341) · c7c66eea
      Hunter Goldstein authored and Michael Aaron Murphy's avatar Michael Aaron Murphy committed
      * Refactored `array_expand` to be more concise / efficient
      
      - `array_expand` now serves as the entry for operating on a set of
      elements and returning an array
      - Fixed a bug where negative indicies were using the wrong length, the
      pre-expansion length
      - Added a regression test for the above
      
      * Factor out common subexpression
      c7c66eea
  14. Jun 23, 2017
  15. Jun 22, 2017
Loading