@@ -58,7 +58,7 @@ pub fn context_menu<'a>(
5858 key_binds : & HashMap < KeyBind , Action > ,
5959 modifiers : & Modifiers ,
6060 clipboard_paste_available : bool ,
61- show_bookmarks : & bool ,
61+ show_starred : & bool ,
6262 context_actions : & [ ContextActionPreset ] ,
6363) -> Element < ' a , tab:: Message > {
6464 let find_key = |action : & Action | -> String {
@@ -139,7 +139,7 @@ pub fn context_menu<'a>(
139139 let mut selected_types: Vec < Mime > = vec ! [ ] ;
140140 let mut selected_mount_point = 0 ;
141141 let mut any_trash_item = false ;
142- let mut bookmarked = 0 ;
142+ let mut starred = 0 ;
143143 if let Some ( items) = tab. items_opt ( ) {
144144 for item in items {
145145 if item. selected {
@@ -148,8 +148,8 @@ pub fn context_menu<'a>(
148148 selected_mount_point += i32:: from ( item. is_mount_point ) ;
149149 selected_dir += 1 ;
150150 }
151- if item. bookmarked {
152- bookmarked += 1
151+ if item. starred {
152+ starred += 1
153153 }
154154 match & item. location_opt {
155155 Some ( Location :: Trash ) | Some ( Location :: Search ( SearchLocation :: Trash , ..) ) => {
@@ -202,9 +202,9 @@ pub fn context_menu<'a>(
202202 | Location :: Path ( ..)
203203 | Location :: Search ( SearchLocation :: Path ( ..) , ..)
204204 | Location :: Search ( SearchLocation :: Recents , ..)
205- | Location :: Search ( SearchLocation :: Bookmarks , ..)
205+ | Location :: Search ( SearchLocation :: Starred , ..)
206206 | Location :: Recents
207- | Location :: Bookmarks
207+ | Location :: Starred
208208 | Location :: Network ( _, _, Some ( _) ) ,
209209 ) => {
210210 if selected_trash_only {
@@ -298,17 +298,17 @@ pub fn context_menu<'a>(
298298 children. push ( menu_item ( fl ! ( "delete-permanently" ) , Action :: Delete ) . into ( ) ) ;
299299 } else {
300300 children. push ( divider:: horizontal:: light ( ) . into ( ) ) ;
301- if * show_bookmarks {
302- if bookmarked > 0 || matches ! ( tab. location, Location :: Bookmarks ) {
301+ if * show_starred {
302+ if starred > 0 || matches ! ( tab. location, Location :: Starred ) {
303303 children. push ( menu_item (
304- fl ! ( "remove-from-bookmarks " ) ,
305- Action :: RemoveFromBookmarks
304+ fl ! ( "remove-from-starred " ) ,
305+ Action :: RemoveFromStarred
306306 ) . into ( ) ) ;
307307 }
308- if bookmarked < selected && !matches ! ( tab. location, Location :: Bookmarks ) {
308+ if starred < selected && !matches ! ( tab. location, Location :: Starred ) {
309309 children. push ( menu_item (
310- fl ! ( "add-to-bookmarks " ) ,
311- Action :: AddToBookmarks
310+ fl ! ( "add-to-starred " ) ,
311+ Action :: AddToStarred
312312 ) . into ( ) ) ;
313313 }
314314 }
@@ -342,7 +342,7 @@ pub fn context_menu<'a>(
342342 } else {
343343 //TODO: need better designs for menu with no selection
344344 //TODO: have things like properties but they apply to the folder?
345- if tab. location != Location :: Recents && tab. location != Location :: Bookmarks {
345+ if tab. location != Location :: Recents && tab. location != Location :: Starred {
346346 children. push ( menu_item ( fl ! ( "new-folder" ) , Action :: NewFolder ) . into ( ) ) ;
347347 children. push ( menu_item ( fl ! ( "new-file" ) , Action :: NewFile ) . into ( ) ) ;
348348 children. push ( menu_item ( fl ! ( "open-in-terminal" ) , Action :: OpenTerminal ) . into ( ) ) ;
@@ -391,9 +391,9 @@ pub fn context_menu<'a>(
391391 | Location :: Path ( ..)
392392 | Location :: Search ( SearchLocation :: Path ( ..) , ..)
393393 | Location :: Search ( SearchLocation :: Recents , ..)
394- | Location :: Search ( SearchLocation :: Bookmarks , ..)
394+ | Location :: Search ( SearchLocation :: Starred , ..)
395395 | Location :: Recents
396- | Location :: Bookmarks
396+ | Location :: Starred
397397 | Location :: Network ( _, _, Some ( _) ) ,
398398 ) => {
399399 if selected > 0 {
@@ -711,8 +711,8 @@ pub fn menu_bar<'a>(
711711 menu:: Item :: Button ( fl!( "reload-folder" ) , None , Action :: Reload ) ,
712712 menu:: Item :: Divider ,
713713 menu_button_optional(
714- fl!( "add-to-bookmarks " ) ,
715- Action :: AddToBookmarks ,
714+ fl!( "add-to-starred " ) ,
715+ Action :: AddToStarred ,
716716 selected > 0 ,
717717 ) ,
718718 menu_button_optional(
@@ -858,9 +858,9 @@ pub fn location_context_menu<'a>(ancestor_index: usize, tab_mode: tab::Mode) ->
858858
859859 if matches ! ( tab_mode, tab:: Mode :: App ) {
860860 children. push ( divider:: horizontal:: light ( ) . into ( ) ) ;
861- children. push ( menu_button ! ( text:: body( fl!( "add-to-bookmarks " ) ) )
861+ children. push ( menu_button ! ( text:: body( fl!( "add-to-starred " ) ) )
862862 . on_press ( tab:: Message :: LocationMenuAction (
863- LocationMenuAction :: AddToBookmarks ( ancestor_index) ,
863+ LocationMenuAction :: AddToStarred ( ancestor_index) ,
864864 ) )
865865 . into ( ) ) ;
866866 children. push ( menu_button ! ( text:: body( fl!( "add-to-sidebar" ) ) )
0 commit comments