   #--------------------------------------------
 
   unset_current_feed = ->
+    unset_open_entry()
     $rootScope.current_feed = null
 
+  #--------------------------------------------
+  # Store the currently open entry in the global scope
+  #--------------------------------------------
+
+  set_open_entry = (entry)->
+    $rootScope.open_entry = entry
+
+  #--------------------------------------------
+  # Unset the currently open entry in the global scope
+  #--------------------------------------------
+
+  unset_open_entry = ->
+    $rootScope.open_entry = null
+
 ]
      .success (data)->
        $scope.loading_entries = false
        $scope.feeds.push data
        $scope.load_feed data
        find_folder('all').unread_entries += data.unread_entries
      .error (data, status)->
        $scope.loading_entries = false

  #--------------------------------------------

  set_current_feed = (feed)->
    unset_open_entry()
    $rootScope.current_feed = feed

  #--------------------------------------------
