         @props.actions.set_file_action()
         @props.actions.set_all_files_unchecked()
         @props.actions.fetch_directory_listing()
-
+        analytics_event('project_file_listing', 'delete item')
 
     render_delete_warning: ->
         if @props.current_path is '.trash'

    on_create_button_clicked: ->
        if @props.file_search.length == 0
            @props.actions.toggle_new()
            analytics_event('project_files', 'search_create_button', 'empty')
        else if @props.file_search[@props.file_search.length - 1] == '/'
            @props.create_folder()
            analytics_event('project_files', 'search_create_button', 'folder')
        else
            @props.create_file()
            analytics_event('project_files', 'search_create_button', 'file')

    render: ->
        <SplitButton

        if @props.file_search.length == 0
            #@props.actions.set_active_tab('new')
            @props.actions.toggle_new(true)
            analytics_event('project_file_listing', 'listing_create_button', 'empty')
        else if @props.file_search[@props.file_search.length - 1] == '/'
            @props.create_folder()
            analytics_event('project_file_listing', 'listing_create_button', 'folder')
        else
            @props.create_file()
            analytics_event('project_file_listing', 'listing_create_button', 'file')

    # Returns the full file_search text in addition to the default extension if applicable
    full_path_text: ->
